A modern, production-ready Next.js template with TypeScript, Tailwind CSS, ESLint, Prettier, and Husky pre-configured for rapid development.
- ⚡ Next.js 15 with App Router
- 🔷 TypeScript for type safety
- 🎨 Tailwind CSS 4 for styling
- 📏 ESLint for code linting
- 💅 Prettier for code formatting
- 🐕 Husky for Git hooks
- 🚀 Pre-configured Git hooks for code quality
- 📱 Responsive design ready
- 🔧 Development tools pre-configured
npx create-metaborong-next-app my-app
cd my-app
npm run dev
git clone https://github.com/0xArchitect/metaborong-next-template.git my-app
cd my-app
npm install
npm run dev
Open http://localhost:3000 with your browser to see the result.
├── src/
│ ├── app/ # Next.js App Router
│ │ ├── globals.css # Global styles
│ │ ├── layout.tsx # Root layout
│ │ └── page.tsx # Home page
│ ├── components/ # Reusable components
│ ├── hooks/ # Custom React hooks
│ ├── utils/ # Utility functions
│ ├── constants/ # App constants
│ └── state/ # State management
├── public/ # Static assets
├── .husky/ # Git hooks
├── .prettierrc # Prettier configuration
├── .prettierignore # Prettier ignore rules
├── eslint.config.mjs # ESLint configuration
├── tailwind.config.js # Tailwind CSS configuration
└── tsconfig.json # TypeScript configuration
# Development
npm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
# Code Quality
npm run lint # Run ESLint
npm run format # Format code with Prettier
npm run format:check # Check code formatting
This template uses Husky for Git hooks to ensure code quality:
- 🎨 Runs Prettier to format all code files
- 🔍 Runs ESLint to check for code quality issues
- 🏗️ Builds the application to ensure it compiles successfully
- ❌ Blocks commit if any step fails
- 🚀 Simple notification when pushing to repository
The template comes with Tailwind CSS 4 pre-configured. You can customize the design system by editing the Tailwind configuration.
Code quality tools are pre-configured with sensible defaults. You can customize the rules by editing:
-
eslint.config.mjs
for ESLint rules -
.prettierrc
for Prettier formatting rules
- Next.js 15 - The React framework for production
- TypeScript - Static type checking
- Tailwind CSS 4 - Utility-first CSS framework
- ESLint - Code linting and quality checks
- Prettier - Code formatting
- Husky - Git hooks for code quality
- Responsive Design - Mobile-first approach
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.
- Next.js team for the amazing framework
- Vercel for hosting and deployment
- Tailwind CSS for the utility-first CSS framework