A modern Next.js 15.1 application with Supabase, AI integration, and robust tooling.
- Node.js >=22.0.0
- Yarn >=1.22.0
yarn install
yarn devThe application will be available at http://localhost:3000.
- Next.js 15.1.4 with App Router
- React 19
- TypeScript 5
- Supabase for backend services
- DrizzleORM for database operations
- Tailwind CSS with animations
- Radix UI primitives
- Lucide React icons
- Class Variance Authority
- Next Themes for dark mode
- OpenAI SDK integration
- AI helpers via 'ai' package
- Email service via Resend
- Hono for API routing
- ESLint with TypeScript and Tailwind configs
- Jest and React Testing Library
- Lefthook for git hooks
- Prettier for code formatting
- Drizzle Kit for database management
yarn dev- Start development serveryarn build- Build production applicationyarn start- Start production serveryarn lint- Run ESLintyarn lint:fix- Fix linting issuesyarn test- Run testsyarn test:watch- Run tests in watch modeyarn clean- Clean build artifacts
The project follows a modular structure with a focus on scalability and maintainability.
Key Directories:
app/: Contains all pages and API routes using Next.js App Routercomponents/: Reusable UI components with a focus on modularityapi/: API routes and endpointsdb/: Database models and operationsprompts/: AI prompts and responsesutils/: Utility functions and helper modulestypes/: TypeScript interfaces and type definitionstests/: Jest and React Testing Library test suites
The project uses Supabase with DrizzleORM for type-safe database operations. Configure your database connection using the following environment variables:
SUPABASE_URL=your_supabase_url
SUPABASE_ANON_KEY=your_supabase_keyTests are written using Jest and React Testing Library. Run the test suite:
yarn testThe project includes OpenAI integration. Configure your AI services using:
OPENAI_API_KEY=your_api_keyThis application is designed to be deployed on platforms supporting Node.js >=22.0.0. For optimal performance, deploy on Vercel: