This is a React Redux Webpack Express starter template. React v0.16 and Webpack 3 are major updates.
Once you have the project template, install all dependencies (bower and node) by executing
$ npm install
$ bower install
After all bower and npm packages and installed, install necessary global dependencies like: pm2, npm-run-parallel, mocha, sequelize, apidocs, npm-run-parallel etc. Please add a .env file to the root containing ENV and other variables.
"test": "mocha ./src/server/test/**/*.js --compilers js:babel-core/register --bail --color", "start": "npm-run-parallel run watch", "run": "grunt", "api-doc": "apidoc -i src/ -o apidoc/", "watch": "webpack --watch", "bump": "grunt bump", "coverage": "grunt coverage"
To run this project, use npm start. For a better idea about using grunt-bump for major:minor:patch please execute the command as follows
grunt bump:major --message="Your major version bump message" grunt bump:minor --message="Your minor version bump message" grunt bump:patch --message="Your patch version bump message"
When you run npm run coverage command, this will run the test and generate coverage folder in root. Open the folder coverage/lcov-report/index.html to see the coverage report on your browser.
When you run npm run api-doc, this will generate ApiDoc in a folder named apidoc in the root. Open the index.html to see the ApiDoc. Please ensure you follow all the commenting guidlines for ApiDoc to work correctly.