# karimhelal/e-learning-platform architecture

> Architecture diagram of the GitHub repository karimhelal/e-learning-platform, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/karimhelal/e-learning-platform
- Repository: https://github.com/karimhelal/e-learning-platform

## Overview

Masar is a role-based e-learning marketplace centered on structured learning tracks. Students discover courses or tracks, enroll, study in a progress-tracked classroom, and earn verifiable certificates; instructors build and manage courses, while administrators curate submissions and assemble tracks. The graph highlights those workflows and the shared application and persistence layers. Connections are limited to README statements and relationships visible in the sampled files or SOURCE INDEX; unsampled feature implementations are represented at their existing service or controller paths.

Main entry points: [`Masar/DAL/Data/AppDbContext.cs`](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/DAL/Data/AppDbContext.cs) (SQL Server / EF Core), [`Masar/Web/Controllers/CourseLearning/CourseLearningController.cs`](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Web/Controllers/CourseLearning/CourseLearningController.cs) (Focus Classroom), [`Masar/BLL/Services/Enrollment/EnrollmentService.cs`](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/Enrollment/EnrollmentService.cs) (Enrollment), [`Masar/Web/Controllers/Home/HomeController.cs`](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Web/Controllers/Home/HomeController.cs) (Public Discovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web Experience"]
  node_web_entry["MVC Controllers"]
  node_account["Accounts"]
  node_public_browse["Public Discovery<br/>[HomeController.cs]"]
  node_student_web["Student Portal"]
  node_classroom_web["Focus Classroom"]
  node_instructor_web["Instructor Tools"]
  node_admin_web["Admin Review"]
  node_cert_web["Certificate Routes"]
end

subgraph group_learning["Learning Services"]
  node_auth_service["Authentication<br/>[AuthService.cs]"]
  node_course_service["Course Discovery<br/>[CourseService.cs]"]
  node_enrollment["Enrollment"]
  node_learning_service["Learning Progress"]
  node_student_services["Student Features"]
  node_cert_service["Certificate Generation"]
end

subgraph group_content["Course Curation"]
  node_instructor_service["Course Authoring"]
  node_creation_service["Draft Creation"]
  node_admin_service["Quality Control<br/>[AdminService.cs]"]
  node_track_service["Learning Tracks<br/>[TrackService.cs]"]
  node_notifier["Live Notifications<br/>[SignalRNotifier.cs]"]
end

subgraph group_data["Domain and Data"]
  node_domain["Learning Model"]
  node_enrollment_model["Enrollment Records<br/>[EnrollmentBase.cs]"]
  node_repositories["Repository Layer"]
  node_database[("SQL Server / EF Core<br/>[AppDbContext.cs]")]
end

node_visitor(("Visitor / Learner"))

node_visitor -->|"signs in"| node_account
node_account -->|"authenticates"| node_auth_service
node_auth_service -->|"reads user data"| node_database
node_visitor -->|"browses"| node_public_browse
node_public_browse -->|"requests courses"| node_course_service
node_public_browse -->|"checks enrollment"| node_enrollment
node_visitor -.->|"uses portal"| node_student_web
node_student_web -.->|"requests features"| node_student_services
node_student_services -.->|"browses courses"| node_course_service
node_visitor -->|"opens classroom"| node_classroom_web
node_classroom_web -->|"checks access"| node_enrollment
node_classroom_web -->|"loads lessons"| node_learning_service
node_classroom_web -->|"renders lesson view"| node_student_services
node_instructor_web -->|"manages courses"| node_instructor_service
node_instructor_web -.->|"creates drafts"| node_creation_service
node_visitor -.->|"reviews submissions"| node_admin_web
node_admin_web -.->|"reviews courses"| node_admin_service
node_admin_service -.->|"sends updates"| node_notifier
node_visitor -->|"verifies certificate"| node_cert_web
node_cert_web -->|"checks certificate"| node_database
node_cert_web -->|"generates PDF"| node_cert_service
node_enrollment -->|"creates enrollment"| node_enrollment_model
node_enrollment -->|"reads and saves"| node_database
node_course_service -.->|"queries courses"| node_database
node_instructor_service -.->|"persists curriculum"| node_database
node_creation_service -.->|"stores drafts"| node_database
node_admin_service -.->|"updates courses"| node_database
node_track_service -.->|"stores tracks"| node_database
node_database -->|"maps entities"| node_domain
node_repositories -.->|"accesses data"| node_database

click node_web_entry "https://github.com/karimhelal/e-learning-platform/tree/master/Masar/Web/Controllers"
click node_account "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Web/Controllers/Account/AccountController.cs"
click node_public_browse "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Web/Controllers/Home/HomeController.cs"
click node_student_web "https://github.com/karimhelal/e-learning-platform/tree/master/Masar/Web/Controllers/Student"
click node_classroom_web "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Web/Controllers/CourseLearning/CourseLearningController.cs"
click node_instructor_web "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Web/Controllers/Instructor/InstructorController.cs"
click node_admin_web "https://github.com/karimhelal/e-learning-platform/tree/master/Masar/Web/Controllers/Admin"
click node_cert_web "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Web/Controllers/CertificateController.cs"
click node_auth_service "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/Account/AuthService.cs"
click node_course_service "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/CourseService.cs"
click node_enrollment "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/Enrollment/EnrollmentService.cs"
click node_learning_service "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/CourseLearning/CourseLearningService.cs"
click node_student_services "https://github.com/karimhelal/e-learning-platform/tree/master/Masar/BLL/Services/Student"
click node_cert_service "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/CertificateGenerationService.cs"
click node_instructor_service "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/Instructor/InstructorCoursesService.cs"
click node_creation_service "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/CourseCreationService.cs"
click node_admin_service "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/Admin/AdminService.cs"
click node_track_service "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/Track/TrackService.cs"
click node_notifier "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Web/Services/SignalRNotifier.cs"
click node_domain "https://github.com/karimhelal/e-learning-platform/tree/master/Masar/Core/Entities"
click node_enrollment_model "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Core/Entities/EnrollmentBase.cs"
click node_repositories "https://github.com/karimhelal/e-learning-platform/tree/master/Masar/DAL/Data/Repository"
click node_database "https://github.com/karimhelal/e-learning-platform/blob/master/Masar/DAL/Data/AppDbContext.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_web_entry,node_account,node_public_browse,node_student_web,node_classroom_web,node_instructor_web,node_admin_web,node_cert_web toneBlue
class node_auth_service,node_course_service,node_enrollment,node_learning_service,node_student_services,node_cert_service toneAmber
class node_instructor_service,node_creation_service,node_admin_service,node_track_service,node_notifier toneMint
class node_domain,node_enrollment_model,node_repositories,node_database toneRose
class node_visitor toneIndigo
```

## Components

### Web Experience

- [MVC Controllers](https://github.com/karimhelal/e-learning-platform/tree/master/Masar/Web/Controllers): `Masar/Web/Controllers`
- [Accounts](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Web/Controllers/Account/AccountController.cs): `Masar/Web/Controllers/Account/AccountController.cs`
- [Public Discovery](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Web/Controllers/Home/HomeController.cs): `Masar/Web/Controllers/Home/HomeController.cs`
- [Student Portal](https://github.com/karimhelal/e-learning-platform/tree/master/Masar/Web/Controllers/Student): `Masar/Web/Controllers/Student`
- [Focus Classroom](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Web/Controllers/CourseLearning/CourseLearningController.cs): `Masar/Web/Controllers/CourseLearning/CourseLearningController.cs`
- [Instructor Tools](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Web/Controllers/Instructor/InstructorController.cs): `Masar/Web/Controllers/Instructor/InstructorController.cs`
- [Admin Review](https://github.com/karimhelal/e-learning-platform/tree/master/Masar/Web/Controllers/Admin): `Masar/Web/Controllers/Admin`
- [Certificate Routes](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Web/Controllers/CertificateController.cs): `Masar/Web/Controllers/CertificateController.cs`

### Learning Services

- [Authentication](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/Account/AuthService.cs): `Masar/BLL/Services/Account/AuthService.cs`
- [Course Discovery](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/CourseService.cs): `Masar/BLL/Services/CourseService.cs`
- [Enrollment](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/Enrollment/EnrollmentService.cs): `Masar/BLL/Services/Enrollment/EnrollmentService.cs`
- [Learning Progress](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/CourseLearning/CourseLearningService.cs): `Masar/BLL/Services/CourseLearning/CourseLearningService.cs`
- [Student Features](https://github.com/karimhelal/e-learning-platform/tree/master/Masar/BLL/Services/Student): `Masar/BLL/Services/Student`
- [Certificate Generation](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/CertificateGenerationService.cs): `Masar/BLL/Services/CertificateGenerationService.cs`

### Course Curation

- [Course Authoring](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/Instructor/InstructorCoursesService.cs): `Masar/BLL/Services/Instructor/InstructorCoursesService.cs`
- [Draft Creation](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/CourseCreationService.cs): `Masar/BLL/Services/CourseCreationService.cs`
- [Quality Control](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/Admin/AdminService.cs): `Masar/BLL/Services/Admin/AdminService.cs`
- [Learning Tracks](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/BLL/Services/Track/TrackService.cs): `Masar/BLL/Services/Track/TrackService.cs`
- [Live Notifications](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Web/Services/SignalRNotifier.cs): `Masar/Web/Services/SignalRNotifier.cs`

### Domain and Data

- [Learning Model](https://github.com/karimhelal/e-learning-platform/tree/master/Masar/Core/Entities): `Masar/Core/Entities`
- [Enrollment Records](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/Core/Entities/EnrollmentBase.cs): `Masar/Core/Entities/EnrollmentBase.cs`
- [Repository Layer](https://github.com/karimhelal/e-learning-platform/tree/master/Masar/DAL/Data/Repository): `Masar/DAL/Data/Repository`
- [SQL Server / EF Core](https://github.com/karimhelal/e-learning-platform/blob/master/Masar/DAL/Data/AppDbContext.cs): `Masar/DAL/Data/AppDbContext.cs`

### Other components

- **Visitor / Learner**

## Connections

- Visitor / Learner → Accounts: signs in (evidence: `Masar/Web/Controllers/Account/AccountController.cs`)
- Accounts → Authentication: authenticates (evidence: `Masar/Web/Controllers/Account/AccountController.cs`)
- Authentication → SQL Server / EF Core: reads user data (evidence: `Masar/BLL/Services/Account/AuthService.cs`)
- Visitor / Learner → Public Discovery: browses (evidence: `Masar/Web/Controllers/Home/HomeController.cs`)
- Public Discovery → Course Discovery: requests courses (evidence: `Masar/Web/Controllers/Home/HomeController.cs`)
- Public Discovery → Enrollment: checks enrollment (evidence: `Masar/Web/Controllers/Home/HomeController.cs`)
- Visitor / Learner → Student Portal: uses portal
- Student Portal → Student Features: requests features
- Student Features → Course Discovery: browses courses
- Visitor / Learner → Focus Classroom: opens classroom (evidence: `Masar/Web/Controllers/CourseLearning/CourseLearningController.cs`)
- Focus Classroom → Enrollment: checks access (evidence: `Masar/Web/Controllers/CourseLearning/CourseLearningController.cs`)
- Focus Classroom → Learning Progress: loads lessons (evidence: `Masar/Web/Controllers/CourseLearning/CourseLearningController.cs`)
- Focus Classroom → Student Features: renders lesson view (evidence: `Masar/Web/Controllers/CourseLearning/CourseLearningController.cs`)
- Instructor Tools → Course Authoring: manages courses (evidence: `Masar/Web/Controllers/Instructor/InstructorController.cs`)
- Instructor Tools → Draft Creation: creates drafts
- Visitor / Learner → Admin Review: reviews submissions
- Admin Review → Quality Control: reviews courses
- Quality Control → Live Notifications: sends updates
- Visitor / Learner → Certificate Routes: verifies certificate (evidence: `Masar/Web/Controllers/CertificateController.cs`)
- Certificate Routes → SQL Server / EF Core: checks certificate (evidence: `Masar/Web/Controllers/CertificateController.cs`)
- Certificate Routes → Certificate Generation: generates PDF (evidence: `Masar/Web/Controllers/CertificateController.cs`)
- Enrollment → Enrollment Records: creates enrollment (evidence: `Masar/BLL/Services/Enrollment/EnrollmentService.cs`)
- Enrollment → SQL Server / EF Core: reads and saves (evidence: `Masar/BLL/Services/Enrollment/EnrollmentService.cs`)
- Course Discovery → SQL Server / EF Core: queries courses
- Course Authoring → SQL Server / EF Core: persists curriculum (evidence: `Masar/BLL/Services/Instructor/InstructorCoursesService.cs`)
- Draft Creation → SQL Server / EF Core: stores drafts
- Quality Control → SQL Server / EF Core: updates courses (evidence: `Masar/BLL/Services/Admin/AdminService.cs`)
- Learning Tracks → SQL Server / EF Core: stores tracks
- SQL Server / EF Core → Learning Model: maps entities (evidence: `Masar/DAL/Data/AppDbContext.cs`)
- Repository Layer → SQL Server / EF Core: accesses data (evidence: `Masar/DAL/Data/Repository/EnrollmentRepository.cs`)
