A modern, feature-rich Next.js template with a comprehensive setup for building scalable web applications.
- Next.js - React framework for production
- React - UI library
- TypeScript - Type-safe JavaScript
- NextUI - Modern and beautiful React UI library
- Tailwind CSS - Utility-first CSS framework
- PostCSS - CSS processing
- Vitest - Fast and modern testing framework
- Unit Testing
- Integration Testing
- Production Testing Configuration
- ESLint - Code linting
- TypeScript - Static type checking
- dotenv - Environment variable management
- Development (.env)
- Test (.env.test)
- Production Test (.env.test.production)
- GitLab CI/CD - Automated pipeline configuration
├── app/ # Next.js app directory (new app router)
├── components/ # Reusable React components
├── config/ # Configuration files
├── lib/ # Library code and utilities
├── public/ # Static assets
├── styles/ # Global styles
├── test/ # Test files and configurations
├── types/ # TypeScript type definitions
└── utils/ # Utility functions
- Clone the repository
- Install dependencies:
npm install
Run different test suites:
# Run unit tests
npm run test:unit
# Run integration tests
npm run test:integration
# Run production tests
npm run test:production
The project uses multiple environment configurations:
.env
- Default development environment.env.test
- Test environment.env.test.production
- Production test environment
- Type-safe environment variables with
environment.d.ts
- Global type declarations in
global.d.ts
- Instrumentation hooks for monitoring
- VSCode configuration for optimal development experience