How mhmdtalat/e-learning-model- works
This is a full-stack academic e-learning platform. Users enter through the React application, authenticate, and use protected dashboard pages to manage departments, courses, instructors, students, and enrollments; analysis and profile capabilities are also documented. The ASP.NET API routes requests through controllers and services to Entity Framework-backed data, with authentication and token handling as a distinct stage. Frontend-to-API transport and several unsampled feature links are described only broadly, so those connections are documented or omitted rather than inferred from filenames.
Main entry points: App.tsx App routing · Controllers API controllers · EnrollmentService.cs Enrollment logic · AppDbContext.cs EF data context
Components 19
Web application
- App routing
E-learning-model/Elearning platfrom/src/App.tsx - Auth state
E-learning-model/Elearning platfrom/src/context/AuthContext.tsx - Dashboard pages
E-learning-model/Elearning platfrom/src/pages - Analytics pages
E-learning-model/Elearning platfrom/src/pages/Analysis.tsx - API client
E-learning-model/Elearning platfrom/src/api/client.ts
API and identity
- Web API
E-learning-model/ELearningModels/Program.cs - API controllers
E-learning-model/ELearningModels/Controllers - Authentication
E-learning-model/ELearningModels/service/AuthService.cs - Token service
E-learning-model/ELearningModels/service/TokenService.cs
Academic operations
- Academic controllers
E-learning-model/ELearningModels/Controllers - Academic services
E-learning-model/ELearningModels/service - Enrollment logic
E-learning-model/ELearningModels/service/EnrollmentService.cs - Analysis endpoint
E-learning-model/ELearningModels/Controllers/AnalysisController.cs - Request and response DTOs
E-learning-model/ELearningModels/DTO
Domain and persistence
- Academic entities
E-learning-model/ELearningModels/model - EF data context
E-learning-model/ELearningModels/Data/AppDbContext.cs - Identity store
E-learning-model/ELearningModels/Data/AppDbContext.cs
Other components
- Platform user
- Configured database
Connections 19
- Platform user → App routing: uses
E-learning-model/Elearning platfrom/src/App.tsx - App routing → Auth state: provides auth
E-learning-model/Elearning platfrom/src/App.tsx - App routing → Dashboard pages: routes to
E-learning-model/Elearning platfrom/src/App.tsx - App routing → Analytics pages: routes to
E-learning-model/Elearning platfrom/src/App.tsx - App routing → API client: uses API
- API client → Web API: sends requests
README.md - Web API → API controllers: maps routes
E-learning-model/ELearningModels/Program.cs - API controllers → Authentication: delegates auth
E-learning-model/ELearningModels/Controllers/AuthController.cs - API controllers → Academic services: delegates operations
README.md - API controllers → Enrollment logic: calls service
E-learning-model/ELearningModels/Controllers/EnrollmentController.cs - Authentication → Token service: creates tokens
E-learning-model/ELearningModels/service/AuthService.cs - Academic services → EF data context: uses data layer
README.md - Enrollment logic → EF data context: reads and writes
E-learning-model/ELearningModels/service/EnrollmentService.cs - Enrollment logic → Request and response DTOs: maps enrollment data
E-learning-model/ELearningModels/service/EnrollmentService.cs - Enrollment logic → Academic entities: queries entities
E-learning-model/ELearningModels/service/EnrollmentService.cs - Analysis endpoint → Academic services: provides reporting
- EF data context → Identity store: stores identity
E-learning-model/ELearningModels/Data/AppDbContext.cs - EF data context → Academic entities: maps entities
E-learning-model/ELearningModels/Data/AppDbContext.cs - Web API → Configured database: configures SQLite
E-learning-model/ELearningModels/Program.cs