https://github.com/prashaantt/hapi-react-transform-boilerplate
React Transform Boilerplate setup for hapi
https://github.com/prashaantt/hapi-react-transform-boilerplate
Last synced: 4 months ago
JSON representation
React Transform Boilerplate setup for hapi
- Host: GitHub
- URL: https://github.com/prashaantt/hapi-react-transform-boilerplate
- Owner: prashaantt
- License: mit
- Created: 2016-01-20T13:05:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-27T12:22:15.000Z (almost 10 years ago)
- Last Synced: 2025-04-06T07:17:27.589Z (7 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hapi React Transform Boilerplate
A hapi starter kit for React based on the [react-transform-boilerplate](https://github.com/gaearon/react-transform-boilerplate) for hot module replacement (HMR) in development, and with a useful project structure for production. Uses [hapi-redux-router](https://github.com/prashaantt/hapi-redux-router) to provide isomorphic routing to components that manage state using a Redux store.
[](https://david-dm.org/prashaantt/hapi-react-transform-boilerplate)
[](https://david-dm.org/prashaantt/hapi-react-transform-boilerplate#info=devDependencies)
## Usage
```bash
git clone https://github.com/prashaantt/hapi-react-transform-boilerplate.git
cd hapi-react-transform-boilerplate
npm install
npm start
open http://localhost:3000
```
HMR will happen for any edits in the React components (```src/screens```).
To simulate production mode with isomorphic routing:
```bash
npm run production
open http://localhost:8080
```
HMR is not available in production.
## License
MIT