Template for creating a Next.js app with TypeScript, Tailwind CSS, and ESLint. Pre-configured with Vitest, React Testing Library and Cypress for testing.
-
Create your project based on this template:
- a) If you want to create a GitHub repository, we would recommend to use the GitHub "Use this template" button and clone your newly created repository
- b) If you don't want to create a GitHub repository, you can use the degit tool to clone this repository without the Git history:
npx degit JPerezC92/nextjs-template#main my-nextjs-app
-
Start the app:
cd my-nextjs-app pnpm install pnpm dev
-
Start coding!
This template uses Vitest for unit testing. To run the tests:
pnpm test
This template uses Cypress for integration testing. To run the tests:
pnpm cy:open
or
pnpm dev
pnpm cy:run
To build the app for production:
pnpm build
To lint the app:
pnpm lint
To format the app:
pnpm lint:fix