A modern, production-ready Next.js template with TypeScript, Tailwind CSS, ESLint, and App Router configuration.
your-project/
āāā src/ # Source directory
ā āāā app/ # App router pages
ā ā āāā layout.tsx # Root layout
ā ā āāā page.tsx # Home page
ā āāā styles/ # Global styles
āāā public/ # Static files
āāā tailwind.config.ts # Tailwind configuration
āāā tsconfig.json # TypeScript configuration
āāā package.json # Project dependencies
Clone this template:
git clone [your-repository-url]
Install dependencies:
npm install
Start the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
npm run dev
- Start development servernpm run build
- Build production bundlenpm run start
- Start production servernpm run lint
- Run ESLintnpm run format
- Format code with PrettierThe template includes a basic Tailwind CSS configuration in tailwind.config.ts
. Customize it by adding your theme extensions:
module.exports = {
theme: {
extend: {
// Add your custom theme configuration
},
},
}
TypeScript configuration is located in tsconfig.json
. The template includes common settings and path aliases.
Create new pages in the src/app
directory following the App Router conventions:
src/app/page.tsx
- Home pagesrc/app/about/page.tsx
- About pagesrc/app/blog/[slug]/page.tsx
- Dynamic blog post pagesContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.