# theekshana-git/pas-blindmatch architecture

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

- Interactive diagram: https://gitdiagram.com/theekshana-git/pas-blindmatch
- Repository: https://github.com/theekshana-git/pas-blindmatch

## Overview

Blind-Match PAS is an ASP.NET Core MVC project-approval system. Students submit and manage proposals; supervisors review projects without student-identifying details, express interest, and confirm matches; confirmation changes project state and permits identity reveal. Administrators manage users, research areas, and allocations, including reset and reassignment. The excerpts show role-protected controllers, EF Core persistence, and matching-service registration. The README documents lifecycle and security goals; unsampled views and some controller actions are represented only where supported by the tree or documentation.

Main entry points: [`PAS.BlindMatch/Data/ApplicationDbContext.cs`](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Data/ApplicationDbContext.cs) (Application data store), [`PAS.BlindMatch/Services/MatchingService.cs`](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Services/MatchingService.cs) (Matching service), [`PAS.BlindMatch/Controllers/AdminController.cs`](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Controllers/AdminController.cs) (Administration), [`PAS.BlindMatch/Controllers/SupervisorController.cs`](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Controllers/SupervisorController.cs) (Reviewer workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and roles"]
  node_identity["Identity login<br/>[Login.cshtml.cs]"]
end

subgraph group_workflows["Approval workflows"]
  node_studentflow["Proposal management"]
  node_supervisorflow["Reviewer workflow"]
  node_adminflow["Administration<br/>[AdminController.cs]"]
  node_dashboard["Dashboard"]
end

subgraph group_matching["Blind matching"]
  node_matching["Matching service<br/>[MatchingService.cs]"]
  node_matchingcontract["Matching contract"]
  node_reveal["Match identity reveal"]
end

subgraph group_domain["Domain and persistence"]
  node_projects["Project lifecycle<br/>[Project.cs]"]
  node_requests["Match requests<br/>[MatchRequest.cs]"]
  node_users["User and roles<br/>[ApplicationUser.cs]"]
  node_research["Research areas<br/>[ResearchArea.cs]"]
  node_expertise["Supervisor expertise"]
  node_context[("Application data store")]
  node_seeder["Initial data seeding<br/>[DbSeeder.cs]"]
end

node_student(("Student"))
node_supervisor(("Supervisor"))
node_admin(("Administrator"))
node_sql[("SQL Server")]

node_student -->|"signs in"| node_identity
node_supervisor -->|"signs in"| node_identity
node_admin -->|"signs in"| node_identity
node_student -->|"submits proposals"| node_studentflow
node_supervisor -->|"reviews projects"| node_supervisorflow
node_admin -->|"manages system"| node_adminflow
node_studentflow -->|"reads and writes"| node_context
node_supervisorflow -->|"reads and writes"| node_context
node_adminflow -->|"reads and writes"| node_context
node_supervisorflow -->|"requests matching"| node_matching
node_adminflow -->|"resets allocations"| node_matching
node_matching -->|"reads and writes"| node_context
node_matching -->|"implements"| node_matchingcontract
node_matching -->|"creates reveal data"| node_reveal
node_context -->|"maps entities"| node_projects
node_context -->|"maps entities"| node_requests
node_context -->|"maps identity"| node_users
node_context -->|"maps entities"| node_research
node_context -->|"maps entities"| node_expertise
node_seeder -->|"seeds data"| node_context
node_context -->|"uses provider"| node_sql
node_studentflow -->|"submits proposals"| node_projects
node_matching -->|"updates lifecycle"| node_projects
node_matching -->|"creates and confirms"| node_requests
node_matching -->|"filters by expertise"| node_expertise
node_matching -->|"reads areas"| node_research
node_supervisorflow -->|"updates preferences"| node_expertise
node_adminflow -->|"manages accounts"| node_users
node_adminflow -->|"manages categories"| node_research

click node_identity "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Areas/Identity/Pages/Account/Login.cshtml.cs"
click node_studentflow "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Controllers/StudentController.cs"
click node_supervisorflow "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Controllers/SupervisorController.cs"
click node_adminflow "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Controllers/AdminController.cs"
click node_dashboard "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Controllers/DashboardController.cs"
click node_matching "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Services/MatchingService.cs"
click node_matchingcontract "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Services/IMatchingService.cs"
click node_projects "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Models/Project.cs"
click node_requests "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Models/MatchRequest.cs"
click node_users "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Models/ApplicationUser.cs"
click node_research "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Models/ResearchArea.cs"
click node_expertise "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Models/SupervisorExpertise.cs"
click node_reveal "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/ViewModels/MatchedRevealViewModel.cs"
click node_context "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Data/ApplicationDbContext.cs"
click node_seeder "https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/DataSeeders/DbSeeder.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_identity toneBlue
class node_studentflow,node_supervisorflow,node_adminflow,node_dashboard,node_sql toneAmber
class node_matching,node_matchingcontract,node_reveal toneMint
class node_projects,node_requests,node_users,node_research,node_expertise,node_context,node_seeder toneRose
class node_student,node_supervisor,node_admin toneIndigo
```

## Components

### Access and roles

- [Identity login](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Areas/Identity/Pages/Account/Login.cshtml.cs): `PAS.BlindMatch/Areas/Identity/Pages/Account/Login.cshtml.cs`

### Approval workflows

- [Proposal management](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Controllers/StudentController.cs): `PAS.BlindMatch/Controllers/StudentController.cs`
- [Reviewer workflow](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Controllers/SupervisorController.cs): `PAS.BlindMatch/Controllers/SupervisorController.cs`
- [Administration](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Controllers/AdminController.cs): `PAS.BlindMatch/Controllers/AdminController.cs`
- [Dashboard](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Controllers/DashboardController.cs): `PAS.BlindMatch/Controllers/DashboardController.cs`

### Blind matching

- [Matching service](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Services/MatchingService.cs): `PAS.BlindMatch/Services/MatchingService.cs`
- [Matching contract](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Services/IMatchingService.cs): `PAS.BlindMatch/Services/IMatchingService.cs`
- [Match identity reveal](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/ViewModels/MatchedRevealViewModel.cs): `PAS.BlindMatch/ViewModels/MatchedRevealViewModel.cs`

### Domain and persistence

- [Project lifecycle](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Models/Project.cs): `PAS.BlindMatch/Models/Project.cs`
- [Match requests](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Models/MatchRequest.cs): `PAS.BlindMatch/Models/MatchRequest.cs`
- [User and roles](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Models/ApplicationUser.cs): `PAS.BlindMatch/Models/ApplicationUser.cs`
- [Research areas](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Models/ResearchArea.cs): `PAS.BlindMatch/Models/ResearchArea.cs`
- [Supervisor expertise](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Models/SupervisorExpertise.cs): `PAS.BlindMatch/Models/SupervisorExpertise.cs`
- [Application data store](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/Data/ApplicationDbContext.cs): `PAS.BlindMatch/Data/ApplicationDbContext.cs`
- [Initial data seeding](https://github.com/theekshana-git/pas-blindmatch/blob/main/PAS.BlindMatch/DataSeeders/DbSeeder.cs): `PAS.BlindMatch/DataSeeders/DbSeeder.cs`

### Other components

- **Student**
- **Supervisor**
- **Administrator**
- **SQL Server**

## Connections

- Student → Identity login: signs in (evidence: `PAS.BlindMatch/Areas/Identity/Pages/Account/Login.cshtml.cs`)
- Supervisor → Identity login: signs in (evidence: `PAS.BlindMatch/Areas/Identity/Pages/Account/Login.cshtml.cs`)
- Administrator → Identity login: signs in (evidence: `PAS.BlindMatch/Areas/Identity/Pages/Account/Login.cshtml.cs`)
- Student → Proposal management: submits proposals (evidence: `PAS.BlindMatch/Controllers/StudentController.cs`)
- Supervisor → Reviewer workflow: reviews projects (evidence: `PAS.BlindMatch/Controllers/SupervisorController.cs`)
- Administrator → Administration: manages system (evidence: `PAS.BlindMatch/Controllers/AdminController.cs`)
- Proposal management → Application data store: reads and writes (evidence: `PAS.BlindMatch/Controllers/StudentController.cs`)
- Reviewer workflow → Application data store: reads and writes (evidence: `PAS.BlindMatch/Controllers/SupervisorController.cs`)
- Administration → Application data store: reads and writes (evidence: `PAS.BlindMatch/Controllers/AdminController.cs`)
- Reviewer workflow → Matching service: requests matching (evidence: `PAS.BlindMatch/Controllers/SupervisorController.cs`)
- Administration → Matching service: resets allocations (evidence: `PAS.BlindMatch/Controllers/AdminController.cs`)
- Matching service → Application data store: reads and writes (evidence: `PAS.BlindMatch/Services/MatchingService.cs`)
- Matching service → Matching contract: implements (evidence: `PAS.BlindMatch/Services/MatchingService.cs`)
- Matching service → Match identity reveal: creates reveal data (evidence: `PAS.BlindMatch/Services/MatchingService.cs`)
- Application data store → Project lifecycle: maps entities (evidence: `PAS.BlindMatch/Data/ApplicationDbContext.cs`)
- Application data store → Match requests: maps entities (evidence: `PAS.BlindMatch/Data/ApplicationDbContext.cs`)
- Application data store → User and roles: maps identity (evidence: `PAS.BlindMatch/Data/ApplicationDbContext.cs`)
- Application data store → Research areas: maps entities (evidence: `PAS.BlindMatch/Data/ApplicationDbContext.cs`)
- Application data store → Supervisor expertise: maps entities (evidence: `PAS.BlindMatch/Data/ApplicationDbContext.cs`)
- Initial data seeding → Application data store: seeds data (evidence: `PAS.BlindMatch/Program.cs`)
- Application data store → SQL Server: uses provider
- Proposal management → Project lifecycle: submits proposals (evidence: `PAS.BlindMatch/Controllers/StudentController.cs`)
- Matching service → Project lifecycle: updates lifecycle (evidence: `PAS.BlindMatch/Services/MatchingService.cs`)
- Matching service → Match requests: creates and confirms (evidence: `PAS.BlindMatch/Services/MatchingService.cs`)
- Matching service → Supervisor expertise: filters by expertise (evidence: `PAS.BlindMatch/Services/MatchingService.cs`)
- Matching service → Research areas: reads areas (evidence: `PAS.BlindMatch/Services/MatchingService.cs`)
- Reviewer workflow → Supervisor expertise: updates preferences (evidence: `PAS.BlindMatch/Controllers/SupervisorController.cs`)
- Administration → User and roles: manages accounts (evidence: `PAS.BlindMatch/Controllers/AdminController.cs`)
- Administration → Research areas: manages categories (evidence: `PAS.BlindMatch/Controllers/AdminController.cs`)
