How ksulakshana02/edwin-web works
Main System Components
a) Client Layer:
• Next.js Frontend Application
• Main route groups: (auth), portal, and public pages
• Real-time communication components (WebRTC/Socket.IO)
b) API/Service Layer:
• Authentication & Authorization services
• Core Services (identified in /src/services):
• Appointment Service
• Invoice Service
• Review Service
• Session Service
• User Service
c) Database Layer:
• MySQL Database (storing user data, courses, sessions, etc.)
d) External Services:
• Firebase (identified in firebase.js)
• File Storage (indicated by Upload components)
Component Relationships
a) Client-Side Flow:
Components ↔ Hooks ↔ Services ↔ API Endpoints
b) Authentication Flow:
Auth Pages → Firebase Auth → Protected Routes
c) Real-time Communications:
Chat Components ↔ WebRTC/Socket.IO ↔ Backend Services
Specific Implementation Details
a) Frontend Architecture:
• Next.js 13+ App Router structure (shown in src/app)
• Component organization (src/components)
• Custom hooks layer (src/hooks)
• Service abstraction layer (src/services)
b) Key Features:
• Real-time tutoring system
• Appointment scheduling
• Chat functionality
• Review and feedback system
• Payment processing
Important Architectural Patterns
Patterns:
• Service-oriented architecture (evident in services folder)
• Component-based architecture (React/Next.js)
• Hook-based state management
• Route grouping pattern (seen in app directory structure)
Additional Elements
Supporting elements:
• Security boundaries
• API endpoints grouping
• Service boundaries