NextJS Typescript starter
This is a NextJS Typescript starter with a few extra features.
Features
- NextJS
- Typescript and ESLint
- TailwindCSS with DaisyUI
- Jest (unit testing)
- Cypress (e2e and integration/component testing)
Getting started
- Clone the repo and install dependencies.
- Run
npm run dev
to start the development server. - Jest and Cypress are already configured, you can run
npm run test
andnpm cypress
to run the appropriate test runners. - You can run
npm run build
to build the project for production. - You can run
npm run start
to start the production server.
Notes
- Cypress is configured for globals. So when you write tests you can use
cy
andCypress
without importing them. - For Jest, you must import functions via @jest/globals. See the lib/components/example test for more details.