This is the template that I usually use to create a new React project from scratch removing the complex boilerplate added by other tools. Feel free to contribute opening issue and/or making PRs ❤️
The project has a fully configured CI using GH actions. Each PR or push on the main branch will trigger the CI that runs:
- The unit tests
- The E2E tests
- The ESlint linter
- The Prettier formatter
and push the Jest coverage on CodeCov.
The application uses the Atomic Design for the component structure.
Make sure you have Node.js
git clone [email protected]:vassalloandrea/react-template.git
cd react-template
npm install
npm run start
Your app now is running on localhost:8080.
This project uses Jest to run unit test and Cypress to run the E2E ones.
npm run test:unit
npm run test:e2e
This project uses ESlint and Prettier to check code style.
npm run lint
npm run format:check
You can use these commands to autofix code style issues
npm run lint:fix
npm run format:fix