This starter kit connects a hapi.js server with webpack dev server with react hot module reloading all set up.
Very basic production config is also in place.
You can use this starter kit to efficiently develop react components and applications that might talk to a Hapi.js backend.
The primary purpose of this repo however is to demonstrate how to wire together these technologies. The config files are organized to have an obvious single source of truth. I've added plenty of comments to explain which config does what.
dependenciesare required to build and run the app in production.
devDependenciesare additionally required to build and run the app in development.
git clonethis repo to your local machine
cdinto project folder
npm installto install dependencies
npm run devto start Hapi application server
npm run webpackin another terminal session to start webpack dev server with hot module reloading
npm run lint.
npm run buildto generate config files and webpack assets. This means we don't need to run webpack dev server in production.
npm startto start up node
SurviveJS is a good introduction to React and Webpack.
Follow Dan Abramov and check out his projects, he knows a thing or two about react and hot module reloading.
This project uses ES6 language features. If you're not into that yet, check out Understanding ES6.
If something's not working in my setup, please file an issue on Github.
MIT. Go nuts.
Nikita Gazarov + Contributors