How phoenix-7theta-fi/tangerine-final works
Main System Components
A. Frontend Layer:
• Client-Side Pages (organized under /pages)
• Public Pages (home, practitioners listing, blog)
• Protected Dashboard Areas (user & practitioner)
• AI Chat Interface
• Components Library (/components)
• Styling System (Tailwind CSS)
B. Backend Layer:
• API Routes (/pages/api)
• Authentication System
• Practitioner Management
• Appointment Management
• Blog Management
• AI Chat Integration
• User Management
C. Data Layer:
• MongoDB Database (indicated by mongodb.js)
• Authentication Store
• Blog Posts Storage
• Embeddings System (for AI functionality)
D. External Services:
• NextAuth.js Authentication
• AI Service Integration
• Rate Limiting System
┌─ Client Layer ─────────────────────┐
• [Browser/User Interface] │
• Next.js Frontend ────────────────┤
• Pages │
• Components │
• Client-side Navigation │
• API Layer ──────────────────────┤
• Authentication │
• Practitioners │
• Appointments │
• Blog │
• AI Chat │
• Service Layer ──────────────────┤
• MongoDB Operations │
• Auth Services │
• Rate Limiting │
• AI Services │
• Data Layer ────────────────────┤
• MongoDB Database │
• Authentication Store │
• File Storage │
Key Relationships to Highlight
• Authentication flow between frontend, API, and MongoDB
• Appointment booking flow from user to practitioner
• AI chat system integration
• Blog post management system
• Rate limiting protection for API routes
Implementation Details
• Notes for important architectural decisions
Additional Notes
• Next.js pages router architecture
• Separation between public and protected routes
• Integration points for AI features
• Error handling and fallback paths
• How the blog system integrates with the main application