A sample setup for React Server-Side Rendering.
Common Setup:
- Webpack 4
- Babel 7
- Eslint
- Husky & lint-staged
- Jest 23 & Enzyme
- PostCSS
- CSS Modules with sass(scss)
- HMR
App Dependencies:
- React 16
- Express
- Redux
- Redux-thunk
- Reselect
- React Router 4
- React Loadable
- React Helmet
npm install
oryarn
yarn start
- Start the dev server at http://localhost:3000
yarn test
- Start
jest
in watch mode
- Start
yarn build && yarn dist
- Bundle the JS and fire up the Express server for production