This boilerplate belongs to Lucas Bassetti
- Babel for ES6 support.
- Chai as BDD / TDD assertion library.
- ESlint for ES6 linting using Airbnb's JS style guide.
- Mocha as test framework.
- Nyc for test coverage
- React as front-end view library.
- Webpack for bundling of JavaScript modules.
Run the following commands in your terminal
git clone https://github.com/toinfinityandbeyond/react-spa.git
cd react-spa
npm install
npm startThen open http://localhost:8080/ on your web browser.
- Run
npm testfor simple test. - Run
npm run lintfor ensure your code is syntactically correct. - Run
npm run test:watchfor watch tests. - Run
npm run test:coveragefor test coverage. This will generate acoveragefolder. Open theindex.htmlfile in this folder to check the results. - Run
npm run buildfor deployment build. - Webpack dev server with automatic reloading. Start with:
npm start.
For deployment, run npm run build and upload build/ to your server.