A clean React and Flux boilerplate that uses:
- React / JSX
- React router
- Flux
- ES6
- Babel
- Webpack
- PostCSS
- CSS modules
- ESLint
- Hot module reloading
- Tape
- Nightwatch
- ESDoc
This application requires Node.js and NPM.
npm install
To perform a clean install, in which the project is returned to a pre-built state with fresh dependencies installed, run:
npm run clean
Run the application in development mode:
npm start
View the development application at http://localhost:8743.
Run the application in production mode:
npm run production
View the production application at http://localhost:8743.
npm run docs
Then open ./esdoc/index.html
in a browser.
Unit tests use tape, and React components are tested using shallow rendering.
Run unit tests with npm test
.
End-to-end tests use Nightwatch, and are used for testing page components.
Run end-to-end tests with npm run e2e
. This will run tests in Firefox and Chrome in parallel. Make sure you have both Firefox and Chrome installed.