Skip to content

Production ready React Redux Saga boilerplate with Server Side Rendering support.

Notifications You must be signed in to change notification settings

maxgram/react-saga-universal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REACT REDUX SAGA UNIVERSAL

Production ready React-Redux-Saga boilerplate with Server Side Rendering support.

Tech highlights

  • Babel 6.26
  • Webpack 4.8
  • React 16.3
  • React-Router 4.2
  • Redux 4.0
  • Redux-saga 0.16
  • Css-modules
  • SVG Sprotesheets

View package.json for more details

Installation

npm i rimraf -g
npm i

Commands

npm start - dev
npm run build - production build
npm run prod - starts production Express server; must build first
npm run api - starts "dev only" api server at http://localhost:3001

Config

cp .env.example .env

Running dev

Run each command in new terminal simultaneously

npm run api
npm start

Running prod

Production api should be available as a separate service. Update API_ROOT at /src/redux/services/api

npm run build
npm run prod