A modern, production-ready Next.js boilerplate with Tailwind CSS, TypeScript, ESLint, and Prettier pre-configured for rapid development.
- ⚡ Next.js 15 - The React framework for production
- 🎨 Tailwind CSS - A utility-first CSS framework
- 📘 TypeScript - Static type checking
- 🔍 ESLint - Code linting and quality
- 💅 Prettier - Code formatting
- 🐕 Husky - Git hooks for quality control
- 📦 Package Manager Agnostic - Works with npm, yarn, pnpm, or bun
-
Clone the repository
git clone https://github.com/melodyxpot/next-tw-boilerplate.git cd next-tw-boilerplate
-
Install dependencies
# Choose your preferred package manager npm install # or yarn install # or pnpm install # or bun install
-
Start the development server
npm run dev # or yarn dev # or pnpm dev # or bun dev
-
Open your browser Navigate to http://localhost:3000 to see your app.
dev
- Start development serverbuild
- Build for productionstart
- Start production serverlint
- Run ESLintprettier
- Format code with Prettierprettier:check
- Check code formatting
├── app/ # App router pages and layouts
├── components/ # Reusable React components
│ └── ui/ # UI components
├── public/ # Static assets
├── .eslintrc.json # ESLint configuration
├── .prettierrc.json # Prettier configuration
├── tailwind.config.ts # Tailwind CSS configuration
└── tsconfig.json # TypeScript configuration
This boilerplate comes with optimized ESLint and Prettier configurations that work well together:
- Import sorting
- Tailwind CSS class sorting
- TypeScript support
- Next.js specific rules
Git hooks are set up to run linting and formatting before commits to ensure code quality.
Contributions are welcome! Please read our Contributing Guide for details.
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ using: