How evondev/ucademy-app works
Main System Components
a) Frontend Layer:
• Next.js App Router Structure
• Dashboard Interface
• Course Management Interface
• User Authentication Interface
• Admin Management Interface
b) Core Modules Layer:
• Course Module
• User Module
• Order Module
• Rating Module
• Comment Module
• Coupon Module
• Lecture/Lesson Module
• History Module
c) Shared Infrastructure Layer:
• Components Library
• UI Components
• Common Utilities
• Types/Schemas
• Contexts/Store
d) Backend Layer:
• API Routes
• Database (MongoDB with Mongoose)
• External Services (Clerk for auth, Uploadthing)
Component Relationships
[Client Browser] ←→ [Next.js Frontend]
• ↓
**[App Router (src/app/*)]**
• ↓
[Module Pages] ←→ [Shared Components]
• ↓
[Module Actions] ←→ [API Routes]
• ↓
[Database Layer]
Specific Implementation Details
[Module: Course]
• Actions
• Components
• Pages
• Schemas
• Types
[Shared Infrastructure]
• UI Components
• Common Components
• Helpers
• Constants
• Types
Key Technical Elements to Highlight
• Next.js 13+ App Router architecture
• MongoDB with Mongoose integration
• Authentication system
• File upload system
• State management
• API routes structure