Personal Next.js boilerplate for rapid project setup and best practices.
- Next.js 14+ (App Router)
- TypeScript
- Tailwind CSS (PostCSS ready)
- Pre-configured ESLint & Prettier
- Customizable folder structure
- Example components, hooks, and utilities
-
Install dependencies:
npm install # or yarn # or pnpm install
-
Run the development server:
npm run dev # or yarn dev # or pnpm dev
-
Open http://localhost:3000 to view your app.
- Edit
src/app/page.tsxto start building your homepage. - Add components in
src/components/. - Update global styles in
src/styles/globals.css. - Store constants, hooks, types, and utilities in their respective folders under
src/.
- Update
next.config.tsandtsconfig.jsonas needed. - Add environment types in
src/types/env.d.ts. - Replace or extend the example components and utilities.
Deploy easily to Vercel or your preferred platform.
nextjs-boilerplate/
├── src/
│ ├── app/
│ │ ├── layout.tsx
│ │ └── page.tsx
│ ├── components/
│ ├── constants/
│ ├── hooks/
│ ├── styles/
│ │ └── globals.css
│ ├── types/
│ └── utils/
├── public/
├── next.config.ts
├── tailwind.config.ts
├── tsconfig.json
└── package.json
- Next.js: React framework for server-side rendering, static site generation, and more
- React: JavaScript library for building user interfaces
- Tailwind CSS: Utility-first CSS framework
- ESLint & Prettier: Code linting and formatting
- TypeScript: Strongly typed programming language
This project is licensed under the terms found in the LICENSE file.
Created by Son H.Do