Warning
This repository is outdated. For newer version of this template, see zerodays/nextjs-template.
This is template to bootstrap new Next.js projects. It includes everything you need to start development.
- Use this template to create new Next.js project.
pnpm create next-app -e https://github.com/zerodays/next-template
- After that, install dependencies:
pnpm install
- Start the development server:
pnpm dev
Open http://localhost:3000 with your browser to see the result.
Lint your code and typecheck it:
pnpm lint
pnpm tsc
Run unit tests:
pnpm test
Check if all localizations keys match between languages:
pnpm i18n
Analyze bundle size:
ANALYZE=true pnpm build
- Next.js 13 with App router
- TailwindCSS for styling
- Prettier
- ESLint for finding problems with following rule sets:
- next-international for internationalization
- react-hook-form for forms
- zod for form validation
- Github Actions for lint, typecheck and localizations checks
- Add zustand for state management
- Add Playwright for end-to-end testing
- Add server-side project setup & TRPC for API
- Add next-axiom for logging
- Update
README.md
file to reflect your project - Create new Infisical project and connect it to newly created repository with
infisical init
command - Add branch protection rule for
master
branch (require at least one review before merging, require status checks to pass before merging, do not allow bypassing checks) - Connect your project to Vercel for automatic deployments
- Choose data fetching library depending on your needs (zodios, react-query, supabase client, etc.)
- Enjoy working on your new project! 🎉