Skip to content

React + SSR setup with simple configuration and ready to use for production

Notifications You must be signed in to change notification settings

yevheniinise/react-plus-ssr-setup

Repository files navigation

React plus SSR setup

About

There are definitely a lot of the same projects. Nevertheless, creating this one I do want to provide a simple, but at the same time with a possibiility to use in production right away, template for React based projects with Server Side rendering feature that has only a minimum configuration of all used libraries. All other possible advanced configuration is expected to be written on-demand and only by your needs. I will try to stick with only those libraries that are relevant for today from the community view.

For me, it is a base for future projects, constant opportunity to examine as new libraries as its updates (in particular those of webpack) and community approaches in a more detailed way.

I would be very grateful for any suggestions or improvements.

Usage

Start Development

npm install
npm start

Start Production

npm install
npm run build
node build/server/server.js

Each has its specific environment based optimizations

Todo

  • Setup webpack-hot-middleware
  • Add Redux, Redux Thunk, Redux DevTools
  • Provide code consistency(linters)
  • Add production client build script
  • Add static typing
  • Setup Jest
  • Add wepback loaders with HMR for SCSS, CSS with
  • Customize webpack compile logs
  • Add React-Helmet