How jitendra39/the-dev-sphere works
Main Components
Frontend Layer:
• Client-Side Components (React/Next.js)
• Public Pages (Home, Courses, Contact Us)
• Authentication Pages
• Admin Dashboard
• Course Player
• UI Components
Backend Layer:
• Next.js API Routes
• Course Management
• Video Streaming
• Authentication
• Email Services
• Referral System
External Services:
• Supabase (Database/Authentication)
• Firebase (indicated by firebaseConfig.js)
• Email Service Provider
┌─────────────────────────────────────────────────────────────┐
• Client Layer │
• ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
• Public │ │ Protected │ │ Admin │ │
• Pages │ │ Pages │ │ Dashboard │ │
• ┘ └─────────────┘ └─────────────┘ │
• ┘
┌───────────────────────────────────────────│──────────────┐
• Application Layer │ │
• ┌─────────────┐ ┌─────────────┐ ┌─────│───────┐ │
• Next.js │ │ Context & │ │ Route │ │
• Router │ │ State │ │ Handlers │ │
• ┘ └─────────────┘ └─────────────┘ │
• ┘
┌───────────────────────────────────────────│───────────┐
• API Layer │ │
• ┌─────────────┐ ┌─────────────┐ ┌─────│───────┐ │
• Course │ │ Video │ │ Auth │ │
• API │ │ Streaming │ │ API │ │
• ┘ └─────────────┘ └─────────────┘ │
• ┘
┌───────────────────────────────────────────│────────┐
• External Services │ │
• ┌─────────────┐ ┌─────────────┐ ┌─────────────┐│
• Supabase │ │ Firebase │ │ Email ││
• Database │ │ Services │ │ Service ││
• ┘ └─────────────┘ └─────────────┘│
• ┘
Important Elements to Highlight
a. Authentication Flow:
• Interaction between MAuth component, Auth API, and Supabase/Firebase
b. Course Management:
• Flow from Course components to Course API to database
• Video streaming architecture
c. State Management:
• GlobalContext and its connections to components
Technical Stack Indicators
• Next.js 13+ (App Router)
• Tailwind CSS
• Supabase
• Firebase
• React Components
• API Routes
Special Features to Highlight
• Video streaming capabilities
• Referral system
• Admin dashboard
• Email notification system
• File upload functionality