forked from codxmayank/react-boilerplate
A simple production grade React Boilerplate.
This boilerplate project is highly scalable and performance focused. It is made using best practices.
To Setup this type of project, (follow easy steps in this article)[https://blog.bitsrc.io/how-to-create-production-grade-react-applications-simplified-for-beginners-4e8d24627920].
- React Project (from scratch using npm init, create-react-app is not used to keep it simple)
- Webpack and Babel
- Eslint and Prettier
- Husky (Pre-commit Git hooks)
- Sonarcube scanner (local setup)
Node version: v16 (16.13.1)
React version: v17 (17.0.2)
-
Clone/fork this repository
-
To install node_modules and other dependencies and dev dependencies run commands:
npm install npm install --save-dev
-
To build project, run
For development build:
npm run dev
For production build:
npm run build
-
To run project on local, run
npm run start
That's it. Enjoy!