This project is open-source, you can contribute too :D
A boilerplate created by NextJS, TypeScript, unit tests, end to end tests and much more.
- Use images webp instead images png because it improve the site optimization in render images.
- To name the interfaces, it should follow the pattern: I + (component or function name) + Props, for example: IProductProps.
- Organize imports into assets, components, hooks, styles, etc.
- At each commit, the unit tests and e2e tests run, and for the e2e test to run, the project must be running locally.
- Do not export components as default, but as a property, but whenever imported, it is not possible to change its name.
- Always check that dependencies not needed for production are as development dependencies.
- Comment unit tests with //ARRANGE, //ACT and //ASSERT, for better understanding.
-
Always use relative REM measurement.
-
Versioning:
- Use commitlint
-
Code Validation:
- Husky
- Lint-staged
-
Code formatting and standardization:
- Prettier
- ESLint
- .editorconfig
- NextJS
- TypeScript
- JavaScript
- Clone the project:
git clone git@github.com:joaovictorpsantos/next-ts-boilerplate.git
- Download dependencies:
yarn
- Run app:
yarn dev