A simple starterkit with material-ui, react-router, and webpack.
- clone this repo
- go to the root directory of your project, and install dependencies:
cd <project folder>
npm install
- For development, we use webpack-dev-server for hotswapping.
npm run dev
In your browser, type http://localhost:5050
- For deployment, we webpack everything and put them in the dist folder.
npm run deploy
- For an example of a boilerplate that uses react hot loader, and includes a server side implementation with hapi, see Thomas Coopman's boilerplate.
- For a nice description of how-tos for using webpack with reactjs, many have referenced Pete Hunt's webpack-howto.
- That said, I found Christian Alfoni's react-webpack cookbook very helpful.
Copyright (c) 2015 Keng Lim