A production-ready Next.js application template with TypeScript, Tailwind CSS, and shadcn/ui components.
- ⚡️ Next.js 13 with App Router
- 🎨 Tailwind CSS for styling
- 🔒 TypeScript for type safety
- 📦 shadcn/ui components
- 🌙 Dark mode support
- 🔍 SEO optimized
- 📱 Responsive design
- 🧪 Jest and React Testing Library
- 🔄 State management with Zustand
- ✨ ESLint and Prettier for code quality
- Clone the repository
- Install dependencies:
npm install
- Copy the environment variables:
cp .env.example .env.local
- Start the development server:
npm run dev
npm run dev
- Start development servernpm run build
- Build for productionnpm run start
- Start production servernpm run lint
- Run ESLintnpm run format
- Format code with Prettiernpm run test
- Run testsnpm run type-check
- Run TypeScript type checking
├── app/ # Next.js app directory
├── components/ # React components
├── lib/ # Utility functions and configurations
├── public/ # Static assets
├── styles/ # Global styles
├── types/ # TypeScript type definitions
└── __tests__/ # Test files
Create a .env.local
file with the following variables:
NEXT_PUBLIC_API_URL=https://api.example.com
NEXT_PUBLIC_SITE_URL=https://your-domain.com
NEXT_PUBLIC_GA_ID=G-XXXXXXXXXX
Run tests with:
npm run test
Add new tests in the __tests__
directory following the naming convention *.test.tsx
or *.test.ts
.
- Fork the repository
- Create a new branch
- Make your changes
- Submit a pull request
MIT