Fork from Luandro's Hapi Universal Redux. A little less opinionated with latest versions of most dependencies.
Isomorphic starterkit with server-side React rendering using npm, piping, webpack, webpack-dev-server, hapi.js, babel.js, react.js, redux, react-router, react-hot-loader
- Fully automated with npm run scripts
- Server hot reloads with piping and Hapi.js
- Webpack for watch + production builds
- React.js + Router on the client and server
- React Hot Loader for instant client updates
- Babel.js automatically compiles ES6 + ES7
- Serverside rendering and hydration
- Redux for managing app state
It just works out-of-the-box.
git clone https://github.com/bfollington/react-redux-isomorphic-boilerplate.git
cd react-redux-isomorphic-boilerplate
npm install
npm run dev # changed from original for ease
# production build and run
NODE_ENV=production npm run build
NODE_ENV=production npm run start
Run npm run dev
in your terminal and play with views/Main.js
to get a feel of the server-side rendering and client-side hot updates.
Original code:
BSD 3-Clause license. Copyright © 2015, Rick Wong and Luandro. All rights reserved.