# mickekofi/classquizmanagementsystem architecture

> Architecture diagram of the GitHub repository mickekofi/classquizmanagementsystem, 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/mickekofi/classquizmanagementsystem
- Repository: https://github.com/mickekofi/classquizmanagementsystem

## Overview

InSchool is an ASP.NET Web Forms LMS for school quizzes. The main journey runs from role-based login through teacher quiz authoring and publishing, student course/quiz selection and attempt submission, then instant grading and teacher performance reporting. Admin user/course management supports that workflow. Edges follow excerpted calls or README capabilities; some feature implementations were not sampled, so undocumented relationships are omitted. The README also describes bulk student import, optional access codes, quiz closure, and feedback; source detail for several of these is partial.

Main entry points: [`src/Shared/Database.cs`](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Shared/Database.cs) (Database connector), [`src/Shared/SessionManager.cs`](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Shared/SessionManager.cs) (Session state), [`Login.aspx.cs`](https://github.com/mickekofi/classquizmanagementsystem/blob/master/Login.aspx.cs) (Role login), [`src/Features/Teacher/CreateQuize.aspx.cs`](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Teacher/CreateQuize.aspx.cs) (Quiz authoring)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity &amp; sessions"]
  node_login["Role login<br/>[Login.aspx.cs]"]
  node_session["Session state<br/>[SessionManager.cs]"]
end

subgraph group_admin["Administration"]
  node_admins["Manage students"]
  node_teachers["Manage teachers"]
  node_courses["Course management"]
  node_assignments["Teacher assignments"]
end

subgraph group_teacher["Teacher assessment"]
  node_teacherhome["Teacher workspace"]
  node_author["Quiz authoring"]
  node_analytics["Quiz analytics"]
end

subgraph group_student["Student assessment"]
  node_studenthome["Student workspace"]
  node_catalog["Course and quiz catalog"]
  node_attempt["Quiz attempt<br/>[TakeQuize.aspx.cs]"]
  node_history["Attempt history<br/>[History.aspx.cs]"]
end

subgraph group_shared["Shared infrastructure"]
  node_database["Database connector<br/>[Database.cs]"]
  node_mysql[("MySQL database")]
end

node_user(("School users"))

node_user -->|"signs in"| node_login
node_login -->|"authenticates against"| node_database
node_login -->|"sets identity"| node_session
node_login -->|"routes admin"| node_admins
node_login -->|"routes teacher"| node_author
node_login -->|"routes student"| node_catalog
node_admins -->|"manages student accounts"| node_database
node_teachers -->|"manages teacher accounts"| node_database
node_assignments -->|"stores assignments"| node_database
node_courses -->|"manages courses"| node_database
node_author -->|"reads teacher identity"| node_session
node_author -->|"creates and publishes quizzes"| node_database
node_catalog -->|"reads student identity"| node_session
node_catalog -->|"loads courses and quizzes"| node_database
node_attempt -->|"reads student identity"| node_session
node_attempt -->|"records answers and score"| node_database
node_analytics -->|"reads teacher identity"| node_session
node_analytics -->|"queries results and closes quiz"| node_database
node_history -->|"reads student identity"| node_session
node_history -->|"loads attempt history"| node_database
node_teacherhome -->|"checks identity"| node_session
node_studenthome -->|"checks identity"| node_session
node_database -->|"opens connections"| node_mysql
node_author -.->|"supports reporting"| node_analytics

click node_login "https://github.com/mickekofi/classquizmanagementsystem/blob/master/Login.aspx.cs"
click node_session "https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Shared/SessionManager.cs"
click node_admins "https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Admin/CreateStudent.aspx.cs"
click node_teachers "https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Admin/CreateTeacher.aspx.cs"
click node_courses "https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Admin/CreateCourse.aspx.cs"
click node_assignments "https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Admin/CreateTeacher.aspx.cs"
click node_teacherhome "https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Teacher/TeacherActivity.Master.cs"
click node_author "https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Teacher/CreateQuize.aspx.cs"
click node_analytics "https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Teacher/QuizeStatistics.aspx.cs"
click node_studenthome "https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Student/StudentActivity.Master.cs"
click node_catalog "https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Student/AvailableCourses.aspx.cs"
click node_attempt "https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Student/TakeQuize.aspx.cs"
click node_history "https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Student/History.aspx.cs"
click node_database "https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Shared/Database.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_login,node_session,node_user toneBlue
class node_admins,node_teachers,node_courses,node_assignments toneAmber
class node_teacherhome,node_author,node_analytics toneMint
class node_studenthome,node_catalog,node_attempt,node_history toneRose
class node_database,node_mysql toneIndigo
```

## Components

### Identity & sessions

- [Role login](https://github.com/mickekofi/classquizmanagementsystem/blob/master/Login.aspx.cs): `Login.aspx.cs`
- [Session state](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Shared/SessionManager.cs): `src/Shared/SessionManager.cs`

### Administration

- [Manage students](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Admin/CreateStudent.aspx.cs): `src/Features/Admin/CreateStudent.aspx.cs`
- [Manage teachers](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Admin/CreateTeacher.aspx.cs): `src/Features/Admin/CreateTeacher.aspx.cs`
- [Course management](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Admin/CreateCourse.aspx.cs): `src/Features/Admin/CreateCourse.aspx.cs`
- [Teacher assignments](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Admin/CreateTeacher.aspx.cs): `src/Features/Admin/CreateTeacher.aspx.cs`

### Teacher assessment

- [Teacher workspace](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Teacher/TeacherActivity.Master.cs): `src/Features/Teacher/TeacherActivity.Master.cs`
- [Quiz authoring](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Teacher/CreateQuize.aspx.cs): `src/Features/Teacher/CreateQuize.aspx.cs`
- [Quiz analytics](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Teacher/QuizeStatistics.aspx.cs): `src/Features/Teacher/QuizeStatistics.aspx.cs`

### Student assessment

- [Student workspace](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Student/StudentActivity.Master.cs): `src/Features/Student/StudentActivity.Master.cs`
- [Course and quiz catalog](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Student/AvailableCourses.aspx.cs): `src/Features/Student/AvailableCourses.aspx.cs`
- [Quiz attempt](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Student/TakeQuize.aspx.cs): `src/Features/Student/TakeQuize.aspx.cs`
- [Attempt history](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Features/Student/History.aspx.cs): `src/Features/Student/History.aspx.cs`

### Shared infrastructure

- [Database connector](https://github.com/mickekofi/classquizmanagementsystem/blob/master/src/Shared/Database.cs): `src/Shared/Database.cs`
- **MySQL database**

### Other components

- **School users**

## Connections

- School users → Role login: signs in (evidence: `Login.aspx.cs`)
- Role login → Database connector: authenticates against (evidence: `Login.aspx.cs`)
- Role login → Session state: sets identity (evidence: `Login.aspx.cs`)
- Role login → Manage students: routes admin (evidence: `Login.aspx.cs`)
- Role login → Quiz authoring: routes teacher (evidence: `Login.aspx.cs`)
- Role login → Course and quiz catalog: routes student (evidence: `Login.aspx.cs`)
- Manage students → Database connector: manages student accounts (evidence: `src/Features/Admin/CreateStudent.aspx.cs`)
- Manage teachers → Database connector: manages teacher accounts (evidence: `src/Features/Admin/CreateTeacher.aspx.cs`)
- Teacher assignments → Database connector: stores assignments (evidence: `src/Features/Admin/CreateTeacher.aspx.cs`)
- Course management → Database connector: manages courses (evidence: `src/Features/Admin/CreateCourse.aspx.cs`)
- Quiz authoring → Session state: reads teacher identity (evidence: `src/Features/Teacher/CreateQuize.aspx.cs`)
- Quiz authoring → Database connector: creates and publishes quizzes (evidence: `src/Features/Teacher/CreateQuize.aspx.cs`)
- Course and quiz catalog → Session state: reads student identity (evidence: `src/Features/Student/AvailableCourses.aspx.cs`)
- Course and quiz catalog → Database connector: loads courses and quizzes (evidence: `src/Features/Student/AvailableCourses.aspx.cs`)
- Quiz attempt → Session state: reads student identity (evidence: `src/Features/Student/TakeQuize.aspx.cs`)
- Quiz attempt → Database connector: records answers and score (evidence: `src/Features/Student/TakeQuize.aspx.cs`)
- Quiz analytics → Session state: reads teacher identity (evidence: `src/Features/Teacher/QuizeStatistics.aspx.cs`)
- Quiz analytics → Database connector: queries results and closes quiz (evidence: `src/Features/Teacher/QuizeStatistics.aspx.cs`)
- Attempt history → Session state: reads student identity (evidence: `src/Features/Student/History.aspx.cs`)
- Attempt history → Database connector: loads attempt history (evidence: `src/Features/Student/History.aspx.cs`)
- Teacher workspace → Session state: checks identity (evidence: `src/Features/Teacher/TeacherActivity.Master.cs`)
- Student workspace → Session state: checks identity (evidence: `src/Features/Student/StudentActivity.Master.cs`)
- Database connector → MySQL database: opens connections (evidence: `src/Shared/Database.cs`)
- Quiz authoring → Quiz analytics: supports reporting
