A boilerplate of web development with React SSR
Generate a project that named my-app
:
$ npx webpack-react-express-ssr my-app
- Server host and port can be changed at
settings.js
at project root.
- React
- Redux Toolkit
- Express
- Webpack
- Babel
- SASS
- DevServer
- Hot Module Replacement
- Server Side Rendering
- ESLint
- Stylelint
- Prettier
- Jest
- React Testing Library
- Husky
- Lint Staged
yarn dev
- Start server for developmentyarn build
- Build production bundleyarn prod
- Start production server afteryarn build
yarn test
- Start running testsyarn cov
- Start running tests with coverage reportyarn lint
- Start eslint validation and do auto-fixyarn analysis
- Analyze the size of each module