DEPRECATED: check out alternatives to building a server-side rendered React app:
Isomorphic starterkit with server-side React rendering using npm, webpack, webpack-dev-server, react-transform-hmr, hapi, babel, react, react-router redux, redux-devtools-extension, react-router-redux, radium.
It just works out-of-the-box.
Make sure you're using Node >= 4.0.0.
git clone https://github.com/luandro/hapi-universal-redux.git
cd hapi-universal-redux
npm install
npm run dev # start Hapi server and webpack-dev-server hot server
# production build and run
npm run production
# or
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.
MIT license. Copyright © 2016, Luandro. All rights reserved.