A minimal, clean starter template built with Next.js 15, TypeScript, and Tailwind CSS.
- ⚡ Next.js 15 with App Router and Turbopack
- 📝 TypeScript for type safety
- 🎨 Tailwind CSS v4 for styling
- 🧩 shadcn/ui ready to use
- 🧪 Vitest for testing
- 📱 Responsive design
- 🎯 ESLint configured
- 💅 Prettier for code formatting
- 🪝 Husky + lint-staged for pre-commit hooks
- Node.js 18+
- pnpm (recommended) or npm
- Clone the repository:
git clone https://github.com/zlatanpham/nextjs-boilerplate.git
cd nextjs-boilerplate
- Install dependencies:
pnpm install
- Run the development server:
pnpm dev
Open http://localhost:3000 to see the application.
pnpm dev
- Start development serverpnpm build
- Build for productionpnpm start
- Start production serverpnpm lint
- Run ESLintpnpm format
- Format code with Prettierpnpm format:check
- Check code formattingpnpm test
- Run testspnpm add:ui
- Add shadcn/ui components
src/
├── app/ # Next.js App Router
│ ├── globals.css # Global styles
│ ├── layout.tsx # Root layout
│ └── page.tsx # Home page
├── components/ # React components
│ └── ui/ # shadcn/ui components
└── lib/ # Utility functions
└── utils.ts # Helper functions
This project is configured to use shadcn/ui. To add a new component:
pnpm add:ui button
Deploy easily with Vercel:
MIT