How vinhloc30796/creativecontact-app works
Main System Components
a) Frontend Layer:
• Next.js App Router (with route groups: auth, protected, public)
• Client-side Components
• Server Components
• UI Components Library
• i18n Internationalization System
b) Backend Layer:
• API Routes (/app/api/*)
• Server Actions (/app/actions/*)
• Authentication System
• Email Service
• File Upload System
c) Database & Storage:
• Supabase Database
• S3-compatible Storage (for artwork assets and profile pictures)
• Drizzle ORM Layer
Key Relationships to Highlight
• Client-Server Communication
• API Routes Flow
• Authentication Flow
• Data Flow between Components
• File Upload Flow
• Database Interactions
Detailed Component Breakdown
🟦 Frontend Components:
• Public Pages (blue)
• Protected Pages (green)
• Auth Pages (yellow)
• Shared Components (gray)
🟥 Backend Services:
• API Routes
• Server Actions
• Authentication Services
• Email Service
• File Management
🟨 Data Layer:
• Database Tables
• Storage Buckets
• ORM Layer
Specific Implementation Details
Specialized sections for:
a) Authentication Flow:
• Magic Link Authentication
• Staff Access
• Protected Routes
b) Event Management:
• Registration System
• Check-in System
• Event Slots
c) Portfolio System:
• Artwork Management
• Credit System
• Asset Management
d) User Management:
• Profile System
• Contact Management
• Skills System
Integration Points
External service integrations:
• Supabase
• Email Service
• Storage Service
• i18n System
[Client Layer]
• ↕️
[Next.js App Router]
• ↕️
[Server Components/Actions]
• ↕️
[API Layer]
• ↕️
[Service Layer]
• ↕️
[Data Access Layer]
• ↕️
[Database & Storage]