1.1.0 • Published 5 years ago
react-express-generator v1.1.0
Generate React-SSR Project
Run Generate Project
❯ npm i react-express-generator -g
❯ react-ssr-generate
? Project name: (react-ssr): <Enter Name>
? Project Configuration: <Select Configurations>
❯ (*) scss|sass
❯ ( ) jest
❯ ( ) tslint
❯ ( ) husky
? Server Configuration: <Select Configurations>
❯ (*) cluster
❯ ( ) postgreSql
❯ ( ) postgreSql-session
? Client Configuration: <Select Configurations>
❯ (*) material-ui
❯ ( ) history
? Place Project in Heroku (Y/n)
What's inside?
- create-react-app as base and
react-scripts
without ejecting; - express as a server;
- stream rendering because it's fast;
- react-app-rewired for improving base
react-scripts
; - TypeScript as a main language for client and server;
- Redux a predictable state container for JavaScript apps.
- material-ui Components
- webpack build
- hmr (Hot Module Resolver) in webpack
Usage
❯ npm i
❯ npm start
Point your browser to http://localhost:3000/.
Building
❯ npm run build
Production
❯ npm run start:production
Point your browser to http://localhost:3000/.