This is a basic Next.js app with that can be used as a kickstarter for new Next.js projects. It has very useful set of tools already pre-configured and ready-to-go, which improves and eases the development process, and helps to increase the quality of your team's code. Those tools include:
- TypeScript
- ESLint
- Prettier
- Editorconfig
- React Testing Library
- Husky with pre-commit hook for running TypeScript validations, linters and tests
- Styled Components
The app also has Unit Tests implemented and a Basic Two-Page Routing Schema.
First, install node modules:
yarn install
Then, you can start the server by executing:
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can also run this command to execute TypeScript validations:
yarn check-ts
and this command to execute the tests:
yarn test
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository