How chandrachur67/learnify works
Main Components
a) Client-Side (Frontend):
• React Application Layer
• User Interface Components
• Authentication Views (Login/Signup)
• Role-based Components (Admin/Instructor/User)
• Course Management Interface
• Video Player Component
• Live Streaming Interface
• Doubt Corner
• Exam Corner
b) Server-Side (Backend):
• Express.js API Layer
• Authentication & Authorization Middleware
• Controllers Layer
• Models Layer
• Route Handlers
c) External Services:
• ZegoCloud (for live streaming)
• Video Storage Service
• Image Storage Service
• (Future) Payment Gateway
Component Relationships
• Frontend to Backend API communication
• Authentication flow
• Role-based access control
• Data flow for course creation/consumption
• Video streaming architecture
• Real-time communication for live classes
• Doubt corner interaction flow
Specific Implementation Details
• Blue rectangles for frontend components
• Green rectangles for backend services
• Yellow diamonds for middleware
• Purple circles for external services
• Red rectangles for database models
Architectural Patterns to Highlight
• MVC Pattern in backend (Models, Controllers, Routes)
• Component-based architecture in React frontend
• Redux store for state management
• Protected routing system
• Middleware authentication chain
Detailed Component Breakdown
Frontend Layer:
• Authentication Components
• Core Components
• Course Management
• Video Platform
• Live Streaming
• Interactive Features
• Role-Specific Views
• Admin Dashboard
• Instructor Interface
• Student Portal
• State Management (Redux)
Backend Layer:
• API Routes
• Middleware Chain
• Authentication
• Role Verification
• Access Control
• Controllers
• Database Models
Data Flow Indicators
• User authentication flow
• Course creation/editing flow
• Video upload/streaming flow
• Live class initialization
• Doubt posting/resolution flow