Documentation
Home

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.

VariableDescription
DATABASE_TYPEType of database (mongodb, supabase, sqlite)
NEXTAUTH_SECRETSecret key used to encrypt session tokens
NEXTAUTH_URLBase URL of your application
OPENAI_API_KEYAPI key for OpenAI (if used)