This is a boilerplate for a React Redux Router app, complete with linter, webpack dev server, configurations, babel, testing and a scalable file structure.
git clone https://github.com/nicolaferracin/reactBoilerplate.git <app-name>
cd <app-name>
npm install
To be able to use the webpack
and the webpack-dev-server
commands, you also need to install these globally:
npm i -g webpack webpack-dev-server
npm run test
or
npm run test:watch
- React
- React Router
- Redux
- Webpack
- ESLint
- Babel
- SASS
- Jest and Enzyme
npm start
to start the application with webpack-dev-server inlocal
environmentnpm run clean
to delete/dist
folder (also called bynpm start
)npm run lint
to check for errors (also called bynpm start
)npm run lint:fix
to check and fix automatically fixable errorsnpm test
to run the complete suite of tests inside/src/
npm run test:watch
as above + wait for changes
- Redux
- Simple +1 -1 counter app
- Production webpack config