# ankit-dhruv/mes-lms architecture

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

- Interactive diagram: https://gitdiagram.com/ankit-dhruv/mes-lms
- Repository: https://github.com/ankit-dhruv/mes-lms

## Overview

MES-LMS is an employee learning-management system: learners access assigned modules and content, record learning progress, and take timed assessments; administrators manage users, modules, questions, and assignments and view dashboards. The graph highlights the evidenced learner workflow and preserves the other major product areas visible in the tree. Source excerpts show progress and assessment rules and database mappings; several controllers and services are unsampled, so their internal connections are not inferred.

Main entry points: [`MES-LMS.Application/Services/ModuleService.cs`](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/ModuleService.cs) (Modules and content), [`MES-LMS.Infrastructure/Repositories`](https://github.com/ankit-dhruv/mes-lms/tree/main/MES-LMS.Infrastructure/Repositories) (Data repositories), [`MES-LMS.Application/Services/LearningProgressService.cs`](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/LearningProgressService.cs) (Learning progress), [`MES-LMS.Application/Services/AssessmentService.cs`](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/AssessmentService.cs) (Assessment attempts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API"]
  node_learning_api["Learning API"]
  node_module_api["Module API"]
  node_content_api["Content API"]
  node_progress_api["Progress API"]
  node_assessment_api["Assessment API"]
  node_auth_api["Authentication API<br/>[AuthController.cs]"]
  node_admin_api["Admin API<br/>[AdminController.cs]"]
  node_admin_dashboard_api["Admin Dashboard API"]
  node_dashboard_api["Dashboard API"]
  node_assignment_api["Assignment API"]
  node_questions_api["Questions API"]
end

subgraph group_learning["Learning"]
  node_learning_catalog["Modules and content<br/>[ModuleService.cs]"]
  node_progress_service["Learning progress"]
  node_assessment_service["Assessment attempts"]
  node_question_service["Question management<br/>[QuestionService.cs]"]
  node_file_storage["File storage"]
end

subgraph group_admin["Administration"]
  node_admin_services["Users and assignments"]
  node_dashboards["Dashboard services"]
  node_identity["User identity"]
end

subgraph group_data["Persistence"]
  node_repositories["Data repositories<br/>[Repositories]"]
  node_db_context[("LMS database context<br/>[LMSDbContext.cs]")]
  node_domain["Learning domain entities<br/>[Entities]"]
end

node_learner(("Learner"))
node_admin_actor(("Administrator"))

node_learner -->|"updates progress"| node_progress_api
node_progress_api -->|"calls service"| node_progress_service
node_progress_service -->|"reads and saves"| node_repositories
node_progress_service -.->|"checks required content"| node_learning_catalog
node_learner -->|"takes assessment"| node_assessment_api
node_assessment_api -->|"calls service"| node_assessment_service
node_assessment_service -->|"reads and saves"| node_repositories
node_assessment_service -->|"evaluates attempts"| node_domain
node_learner -.->|"browses modules"| node_module_api
node_module_api -.->|"calls service"| node_learning_catalog
node_content_api -->|"calls service"| node_learning_catalog
node_admin_actor -.->|"manages users"| node_admin_api
node_admin_actor -->|"assigns modules"| node_assignment_api
node_assignment_api -->|"calls service"| node_admin_services
node_admin_actor -->|"manages questions"| node_questions_api
node_questions_api -->|"calls service"| node_question_service
node_admin_actor -.->|"views dashboard"| node_admin_dashboard_api
node_admin_actor -.->|"views dashboard"| node_dashboard_api
node_auth_api -.->|"resolves identity"| node_identity
node_learning_catalog -->|"reads modules"| node_repositories
node_repositories -->|"queries database"| node_db_context
node_db_context -->|"maps entities"| node_domain
node_content_api -.->|"stores uploads"| node_file_storage

click node_learning_api "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/LearningController.cs"
click node_module_api "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/ModulesController.cs"
click node_content_api "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/ModuleContentController.cs"
click node_progress_api "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/LearningProgressController.cs"
click node_assessment_api "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/AssessmentsController.cs"
click node_auth_api "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/AuthController.cs"
click node_admin_api "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/AdminController.cs"
click node_admin_dashboard_api "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/AdminDashboardController.cs"
click node_dashboard_api "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/DashboardController.cs"
click node_assignment_api "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/UserModuleAssignmentController.cs"
click node_questions_api "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/QuestionsController.cs"
click node_learning_catalog "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/ModuleService.cs"
click node_progress_service "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/LearningProgressService.cs"
click node_assessment_service "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/AssessmentService.cs"
click node_question_service "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/QuestionService.cs"
click node_admin_services "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/UserModuleAssignmentService.cs"
click node_dashboards "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/AdminDashboardService.cs"
click node_identity "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Infrastructure/Services/CurrentUserService.cs"
click node_file_storage "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Infrastructure/Services/FileStorageService.cs"
click node_repositories "https://github.com/ankit-dhruv/mes-lms/tree/main/MES-LMS.Infrastructure/Repositories"
click node_db_context "https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Infrastructure/Data/LMSDbContext.cs"
click node_domain "https://github.com/ankit-dhruv/mes-lms/tree/main/MES-LMS.Domain/Entities"

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_learning_api,node_module_api,node_content_api,node_progress_api,node_assessment_api,node_auth_api,node_admin_api,node_admin_dashboard_api,node_dashboard_api,node_assignment_api,node_questions_api toneBlue
class node_learning_catalog,node_progress_service,node_assessment_service,node_question_service,node_file_storage toneAmber
class node_admin_services,node_dashboards,node_identity toneMint
class node_repositories,node_db_context,node_domain toneRose
class node_learner,node_admin_actor toneIndigo
```

## Components

### API

- [Learning API](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/LearningController.cs): `MES-LMS.API/Controllers/LearningController.cs`
- [Module API](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/ModulesController.cs): `MES-LMS.API/Controllers/ModulesController.cs`
- [Content API](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/ModuleContentController.cs): `MES-LMS.API/Controllers/ModuleContentController.cs`
- [Progress API](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/LearningProgressController.cs): `MES-LMS.API/Controllers/LearningProgressController.cs`
- [Assessment API](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/AssessmentsController.cs): `MES-LMS.API/Controllers/AssessmentsController.cs`
- [Authentication API](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/AuthController.cs): `MES-LMS.API/Controllers/AuthController.cs`
- [Admin API](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/AdminController.cs): `MES-LMS.API/Controllers/AdminController.cs`
- [Admin Dashboard API](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/AdminDashboardController.cs): `MES-LMS.API/Controllers/AdminDashboardController.cs`
- [Dashboard API](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/DashboardController.cs): `MES-LMS.API/Controllers/DashboardController.cs`
- [Assignment API](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/UserModuleAssignmentController.cs): `MES-LMS.API/Controllers/UserModuleAssignmentController.cs`
- [Questions API](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.API/Controllers/QuestionsController.cs): `MES-LMS.API/Controllers/QuestionsController.cs`

### Learning

- [Modules and content](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/ModuleService.cs): `MES-LMS.Application/Services/ModuleService.cs`
- [Learning progress](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/LearningProgressService.cs): `MES-LMS.Application/Services/LearningProgressService.cs`
- [Assessment attempts](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/AssessmentService.cs): `MES-LMS.Application/Services/AssessmentService.cs`
- [Question management](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/QuestionService.cs): `MES-LMS.Application/Services/QuestionService.cs`
- [File storage](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Infrastructure/Services/FileStorageService.cs): `MES-LMS.Infrastructure/Services/FileStorageService.cs`

### Administration

- [Users and assignments](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/UserModuleAssignmentService.cs): `MES-LMS.Application/Services/UserModuleAssignmentService.cs`
- [Dashboard services](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Application/Services/AdminDashboardService.cs): `MES-LMS.Application/Services/AdminDashboardService.cs`
- [User identity](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Infrastructure/Services/CurrentUserService.cs): `MES-LMS.Infrastructure/Services/CurrentUserService.cs`

### Persistence

- [Data repositories](https://github.com/ankit-dhruv/mes-lms/tree/main/MES-LMS.Infrastructure/Repositories): `MES-LMS.Infrastructure/Repositories`
- [LMS database context](https://github.com/ankit-dhruv/mes-lms/blob/main/MES-LMS.Infrastructure/Data/LMSDbContext.cs): `MES-LMS.Infrastructure/Data/LMSDbContext.cs`
- [Learning domain entities](https://github.com/ankit-dhruv/mes-lms/tree/main/MES-LMS.Domain/Entities): `MES-LMS.Domain/Entities`

### Other components

- **Learner**
- **Administrator**

## Connections

- Learner → Progress API: updates progress (evidence: `MES-LMS.API/Controllers/LearningProgressController.cs`)
- Progress API → Learning progress: calls service (evidence: `MES-LMS.API/Controllers/LearningProgressController.cs`)
- Learning progress → Data repositories: reads and saves (evidence: `MES-LMS.Application/Services/LearningProgressService.cs`)
- Learning progress → Modules and content: checks required content
- Learner → Assessment API: takes assessment (evidence: `MES-LMS.API/Controllers/AssessmentsController.cs`)
- Assessment API → Assessment attempts: calls service (evidence: `MES-LMS.API/Controllers/AssessmentsController.cs`)
- Assessment attempts → Data repositories: reads and saves (evidence: `MES-LMS.Application/Services/AssessmentService.cs`)
- Assessment attempts → Learning domain entities: evaluates attempts (evidence: `MES-LMS.Application/Services/AssessmentService.cs`)
- Learner → Module API: browses modules
- Module API → Modules and content: calls service
- Content API → Modules and content: calls service (evidence: `MES-LMS.API/Controllers/ModuleContentController.cs`)
- Administrator → Admin API: manages users
- Administrator → Assignment API: assigns modules (evidence: `MES-LMS.API/Controllers/UserModuleAssignmentController.cs`)
- Assignment API → Users and assignments: calls service (evidence: `MES-LMS.API/Controllers/UserModuleAssignmentController.cs`)
- Administrator → Questions API: manages questions (evidence: `MES-LMS.API/Controllers/QuestionsController.cs`)
- Questions API → Question management: calls service (evidence: `MES-LMS.API/Controllers/QuestionsController.cs`)
- Administrator → Admin Dashboard API: views dashboard
- Administrator → Dashboard API: views dashboard
- Authentication API → User identity: resolves identity
- Modules and content → Data repositories: reads modules (evidence: `MES-LMS.Application/Services/ModuleService.cs`)
- Data repositories → LMS database context: queries database (evidence: `MES-LMS.Infrastructure/Repositories/LearningProgressRepository.cs`)
- LMS database context → Learning domain entities: maps entities (evidence: `MES-LMS.Infrastructure/Data/LMSDbContext.cs`)
- Content API → File storage: stores uploads
