Back to Templates
Next.js
Next.js 14 Starter with App Router, TypeScript, Tailwind & Docker
Next.js 14 App Router with TS and Tailwind
terminal
npx setupkaro init my-app --template nextjsZero installNo telemetryMIT License
What's Included
- Next.js 14 (App Router) + TypeScript 5 (strict)
- Tailwind CSS 3 + PostCSS
- ESLint (next/core-web-vitals, typescript-eslint) + Prettier
- Playwright for E2E testing + Vitest for unit tests
- Husky + lint-staged
- GitHub Actions: typecheck, lint, test (unit + e2e), build
- Multi-stage Dockerfile (standalone output) + docker-compose
- next.config.js with security headers and image optimization
- Generated README with deployment guides (Vercel, Docker, static export)
Generated Folder Structure
src/app/layout.tsxpage.tsxglobals.csscomponents/lib/public/tests/e2e/unit/.github/workflows/ci.ymlDockerfiledocker-compose.ymlpackage.jsontsconfig.jsonnext.config.jstailwind.config.jspostcss.config.jseslint.config.jsprettier.config.jsplaywright.config.tsvitest.config.tsREADME.md
Quick Start Commands
Generate Project
terminal
npx setupkaro init my-app --template nextjsNext Steps
cd my-app
npm install
npm run dev
Frequently Asked Questions
- Does it use the Pages Router or App Router?
- App Router (Next.js 14+ default). The template uses Server Components by default.
- Can I deploy to Vercel with this?
- Yes — the generated project works on Vercel out of the box. The Dockerfile is for self-hosted/container deployments.
- What about middleware, API routes, server actions?
- The template includes examples in src/app/api/ and src/middleware.ts. Extend as needed.
- Does it include a database layer (Prisma, Drizzle)?
- No — the template is unopinionated on data. Add Prisma/Drizzle after generation.
Generate Another Template
React + TypeScript
Vite + React + TS with Tailwind and React Router
terminal
npx setupkaro init my-app --template react-tsReplace my-app with your project name.
Ready to generate your Next.js project?
One command. Production-ready. Start building in seconds.
terminal
npx setupkaro init my-app --template nextjs