Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.82 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.82 KB

react-redux-universal-starter (In progress)

This application provides an universal rendering (the ability to render on server-side too, improve the SEO and the UX in first render). The idea is to keep the stack simple and easy to maintain. The following technologies are used :

How it works

The main idea is you gonna use a classic client-side only for the development phase using webpack-sere combine to react-hot-loader to update components without complete reloading (especially keeping the state).

For a production mode, just build the client and the server. Then the server powered by express will provide a server side rendering and assets access. If there is no JS (some SEO engine for example), everything is fine, express will handle every routes access. Otherwise the bundle will be fetch, and React will take over the control.

Usage

Install
git clone git@github.com:Exayy/react-redux-universal-starter.git
cd react-redux-universal-starter
npm install
Development
npm run dev
Prod
npm run build:client & npm run build:server
npm run prod