Project Structure
Understanding the organization of fe.
Overview
The project follows a standard Next.js App Router structure with additional directories for the specific architecture of this stack.
src/
app/Next.js App Router pages and API routes
components/React components (UI, features)
lib/Core logic and libraries
ai/AI service integrations
auth/Authentication logic
database/Database repositories
const/Constants and configuration
Environment Variables
Key environment variables required for the project.
| Variable | Description |
|---|---|
| DATABASE_TYPE | Type of database (mongodb, supabase, sqlite) |
| NEXTAUTH_SECRET | Secret key used to encrypt session tokens |
| NEXTAUTH_URL | Base URL of your application |
| OPENAI_API_KEY | API key for OpenAI (if used) |