Skip to content

React Redux boilerplate with sagas and server rendering

Notifications You must be signed in to change notification settings

voodoocreation/react-redux-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Redux boilerplate with server rendering

A project boilerplate for applications that require React, Redux, Redux-Saga and want to support server rendering as well.

See Next.js documentation for environment config etc.

Custom routes

Using next-routes, you can define custom routes inside /next.routes.js to handle more advanced routing to support routes with IDs, slugs etc.

Changing base HTML page structure

The base global page template can be changed in /pages/_document.js if you require CDN-loaded third party scripts or CSS, or just wish to change the way the page chrome is rendered across all pages.

NPM scripts

The following scripts can be used:

  • dev: Runs dev environment with hot module reloading
  • build: Builds prod bundle ready for deployment
  • build:export: Builds and exports static HTML prod bundle ready for deployment
  • start: Start prod environment (requires build script to have been run first)
  • format: Run prettier code formatting
  • lint:ts: Run TS linter, rules defined in /.eslintrc
  • lint:scss: Run SCSS linter, rules defined in /.stylelintrc
  • lint: Run all linting
  • test: Run unit tests for project (using Jest)