# bijoydasgupta/student-result-management-system architecture

> Architecture diagram of the GitHub repository bijoydasgupta/student-result-management-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bijoydasgupta/student-result-management-system
- Repository: https://github.com/bijoydasgupta/student-result-management-system

## Overview

SRMS is a multi-role academic results portal with a browser/localStorage demonstration mode and a PHP/MySQL persistent mode. Users sign in to role-specific dashboards: admins maintain accounts and academic assignments; teachers record grades and attendance, publish results, and review audit history; students and parents view reports and can challenge results. Signup approval and notifications support those workflows. The README documents these capabilities, but sampled source is partial, so unsampled UI/API links are omitted rather than inferred.

Main entry points: [`api/config.php`](https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/config.php) (Database access), [`database.sql`](https://github.com/bijoydasgupta/student-result-management-system/blob/main/database.sql) (MySQL records), [`api/result_challenges.php`](https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/result_challenges.php) (Result challenges), [`api/state.php`](https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/state.php) (Application state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Role dashboards"]
  node_admin["Admin dashboard<br/>[admin.js]"]
  node_teacher["Teacher dashboard<br/>[teacher.js]"]
  node_student["Student dashboard<br/>[student.js]"]
  node_parent["Parent dashboard<br/>[parent.js]"]
end

subgraph group_accounts["Identity and approval"]
  node_login["Login<br/>[login.js]"]
  node_signup["Signup<br/>[signup.js]"]
  node_approval["Request review<br/>[review_signup.php]"]
  node_registration["Signup requests<br/>[signup_request.php]"]
end

subgraph group_academics["Academic records"]
  node_assignment["Academic assignments"]
end

subgraph group_results["Results and engagement"]
  node_challenge["Result challenges"]
  node_notifications["Notifications<br/>[notifications.php]"]
end

subgraph group_persistence["Persistence"]
  node_state["Application state<br/>[state.php]"]
  node_grade_sync["Grade and attendance sync<br/>[grade_sync.php]"]
  node_config["Database access<br/>[config.php]"]
  node_mysql[("MySQL records<br/>[database.sql]")]
end

node_person(("Portal users"))

node_person -->|"signs in"| node_login
node_person -->|"requests access"| node_signup
node_signup -->|"submits request"| node_registration
node_registration -->|"stores request"| node_mysql
node_admin -->|"reviews request"| node_approval
node_approval -->|"creates account"| node_mysql
node_login -.->|"opens dashboard"| node_person
node_admin -->|"sets assignments"| node_assignment
node_assignment -->|"updates records"| node_mysql
node_teacher -->|"saves grades"| node_state
node_state -->|"syncs records"| node_grade_sync
node_grade_sync -->|"writes summaries"| node_mysql
node_student -->|"challenges result"| node_challenge
node_challenge -->|"syncs resolution"| node_grade_sync
node_challenge -->|"stores challenge"| node_mysql
node_parent -.->|"reads alerts"| node_notifications
node_state -->|"creates publish alerts"| node_notifications
node_config -->|"connects"| node_mysql
node_approval -->|"uses database access"| node_config
node_registration -->|"uses database access"| node_config
node_assignment -->|"uses database access"| node_config
node_challenge -->|"uses database access"| node_config
node_notifications -->|"uses database access"| node_config
node_state -->|"uses database access"| node_config

click node_admin "https://github.com/bijoydasgupta/student-result-management-system/blob/main/js/admin.js"
click node_teacher "https://github.com/bijoydasgupta/student-result-management-system/blob/main/js/teacher.js"
click node_student "https://github.com/bijoydasgupta/student-result-management-system/blob/main/js/student.js"
click node_parent "https://github.com/bijoydasgupta/student-result-management-system/blob/main/js/parent.js"
click node_login "https://github.com/bijoydasgupta/student-result-management-system/blob/main/js/login.js"
click node_signup "https://github.com/bijoydasgupta/student-result-management-system/blob/main/js/signup.js"
click node_approval "https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/review_signup.php"
click node_registration "https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/signup_request.php"
click node_assignment "https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/save_academic_assignment.php"
click node_challenge "https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/result_challenges.php"
click node_notifications "https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/notifications.php"
click node_state "https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/state.php"
click node_grade_sync "https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/grade_sync.php"
click node_config "https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/config.php"
click node_mysql "https://github.com/bijoydasgupta/student-result-management-system/blob/main/database.sql"

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_admin,node_teacher,node_student,node_parent,node_person toneBlue
class node_login,node_signup,node_approval,node_registration toneAmber
class node_assignment toneMint
class node_challenge,node_notifications toneRose
class node_state,node_grade_sync,node_config,node_mysql toneIndigo
```

## Components

### Role dashboards

- [Admin dashboard](https://github.com/bijoydasgupta/student-result-management-system/blob/main/js/admin.js): `js/admin.js`
- [Teacher dashboard](https://github.com/bijoydasgupta/student-result-management-system/blob/main/js/teacher.js): `js/teacher.js`
- [Student dashboard](https://github.com/bijoydasgupta/student-result-management-system/blob/main/js/student.js): `js/student.js`
- [Parent dashboard](https://github.com/bijoydasgupta/student-result-management-system/blob/main/js/parent.js): `js/parent.js`

### Identity and approval

- [Login](https://github.com/bijoydasgupta/student-result-management-system/blob/main/js/login.js): `js/login.js`
- [Signup](https://github.com/bijoydasgupta/student-result-management-system/blob/main/js/signup.js): `js/signup.js`
- [Request review](https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/review_signup.php): `api/review_signup.php`
- [Signup requests](https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/signup_request.php): `api/signup_request.php`

### Academic records

- [Academic assignments](https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/save_academic_assignment.php): `api/save_academic_assignment.php`

### Results and engagement

- [Result challenges](https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/result_challenges.php): `api/result_challenges.php`
- [Notifications](https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/notifications.php): `api/notifications.php`

### Persistence

- [Application state](https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/state.php): `api/state.php`
- [Grade and attendance sync](https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/grade_sync.php): `api/grade_sync.php`
- [Database access](https://github.com/bijoydasgupta/student-result-management-system/blob/main/api/config.php): `api/config.php`
- [MySQL records](https://github.com/bijoydasgupta/student-result-management-system/blob/main/database.sql): `database.sql`

### Other components

- **Portal users**

## Connections

- Portal users → Login: signs in (evidence: `README.md`)
- Portal users → Signup: requests access (evidence: `README.md`)
- Signup → Signup requests: submits request (evidence: `README.md`)
- Signup requests → MySQL records: stores request (evidence: `api/signup_request.php`)
- Admin dashboard → Request review: reviews request (evidence: `README.md`)
- Request review → MySQL records: creates account (evidence: `api/review_signup.php`)
- Login → Portal users: opens dashboard
- Admin dashboard → Academic assignments: sets assignments (evidence: `README.md`)
- Academic assignments → MySQL records: updates records (evidence: `api/save_academic_assignment.php`)
- Teacher dashboard → Application state: saves grades (evidence: `README.md`)
- Application state → Grade and attendance sync: syncs records (evidence: `api/state.php`)
- Grade and attendance sync → MySQL records: writes summaries (evidence: `api/grade_sync.php`)
- Student dashboard → Result challenges: challenges result (evidence: `README.md`)
- Result challenges → Grade and attendance sync: syncs resolution (evidence: `api/result_challenges.php`)
- Result challenges → MySQL records: stores challenge (evidence: `api/result_challenges.php`)
- Parent dashboard → Notifications: reads alerts
- Application state → Notifications: creates publish alerts (evidence: `api/state.php`)
- Database access → MySQL records: connects (evidence: `api/config.php`)
- Request review → Database access: uses database access (evidence: `api/review_signup.php`)
- Signup requests → Database access: uses database access (evidence: `api/signup_request.php`)
- Academic assignments → Database access: uses database access (evidence: `api/save_academic_assignment.php`)
- Result challenges → Database access: uses database access (evidence: `api/result_challenges.php`)
- Notifications → Database access: uses database access (evidence: `api/notifications.php`)
- Application state → Database access: uses database access (evidence: `api/state.php`)
