A modern, production-ready Next.js starter kit with everything you need to build fast, beautiful, and responsive web applications.
src/
โโโ app/ # Next.js app router pages and layouts
โโโ components/ # Reusable UI components
โโโ config/ # Configuration files
โโโ emails/ # Email templates using React Email
โโโ lib/ # Utility functions and shared logic
โโโ server/ # Server-side code (DB, Auth, API logic)
โโโ env.js # Environment variables validation
e2e/ # End-to-end tests with Playwright
โโโ auth/ # Authentication-related tests
โโโ navigation/ # Navigation flow tests
โโโ fixtures/ # Test fixtures and helpers
โโโ utils/ # Test utilities
temp/ # Temporary files and folder
โโโ localstack/ # LocalStack configuration for AWS services
โโโ mailpit/ # Mailpit configuration for local email testing
โโโ playwright-report/ # Playwright test reports
โโโ playwright-results/ # Playwright test results
Clone the repository
git clone https://github.com/yourusername/nextjs-starter-kit.git
cd nextjs-starter-kit
Install dependencies
pnpm install
Set up environment variables
Edit .env
with your configuration.
Start the development server and Docker services
The docker-compose.yml
includes services like Mailpit for email testing and LocalStack for emulating AWS services (like S3) locally.
docker-compose up -d # Start Mailpit, LocalStack, and other services
pnpm dev
Open http://localhost:3000 with your browser to see the result.
For email testing, access Mailpit at http://localhost:8025
dev
- Start development server with Turbopackbuild
- Build for productionstart
- Start production serverlint
- Run ESLintlint:fix
- Fix ESLint issuestypecheck
- Run TypeScript compiler checkformat:write
- Format code with Prettierformat:check
- Check code formattingdb:push
- Push schema changes to the database (SQLite)db:generate
- Generate DB migration filesdb:migrate
- Apply DB migrationsdb:studio
- Open Drizzle Studio GUIemail:dev
- Start React Email development servertest:unit
- Run unit tests with Vitesttest:e2e
- Run Playwright E2E teststest:e2e:ui
- Run Playwright tests with UI modeFor more information about the technologies used in this starter kit:
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.