React Boilerplate
Yet another starter boilerplate with lot's of goodies: React, Redux, ES2015, JSPM, hot-reloading, Karma + Mocha + Enzyme + Chai, Istanbul + isparta, ESLint + XO
Features
- Redux
- react-router
- react-bootstrap + react-router-bootstrap - to complete Redux and router setup some base component set
- Babel - to use ES2015 features of JS.
- JSPM - frictionless browser package management - loading time is painful but together with hot-reloading development is really pleasant.
- systemjs-hot-reloader - change a file and see the change immidiatelly in the browser - really nice.
- Karma + Mocha + Enzyme + Chai - testing should be your starting point to create new applications and this set of libraries does the job well
- Istanbul + isparta - code coverage is helpful to track the quality of your tests, with Istanbul and isparta reports look awesome.
- ESLint + XO - to format my code and have some sane defaults I use XO, it has rules for React configured out of the box.
Development mode (with hot-reloading)
npm install
npm install -g jspm
jspm install
npm start
Production mode (using jspm bundle)
npm build
NODE_ENV=prod npm start
Redux DevTools (for hot-reloading)
https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd/related
License
This project is licensed under the MIT license, Copyright (c) 2016 Maciej Rosiek. For more information see LICENSE
.