# jatint4r/college-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/jatint4r/college-management-system
- Repository: https://github.com/jatint4r/college-management-system

## Overview

Vidya is a college-management web application with public pages and role-specific student, staff, and admin portals. Users enter through the React app, sign up or log in, then reach role-specific routes; students view academic information, while staff upload attendance and marks. The README also documents admin management of student records, notices, and medical leave, though those workflows are not fully represented in the sampled source. The backend is represented by its entry point; detailed API-to-database behavior was not shown.

Main entry points: [`FrontEnd/src/App.jsx`](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/App.jsx) (React app routes), [`Backend/server.js`](https://github.com/jatint4r/college-management-system/blob/main/Backend/server.js) (Express API server), [`FrontEnd/src/Components/LoginPage.jsx`](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/LoginPage.jsx) (Login), [`FrontEnd/src/Components/SignUpPage.jsx`](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/SignUpPage.jsx) (Signup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web entry and public pages"]
  node_react_app["React app routes<br/>[App.jsx]"]
  node_home["Home page<br/>[HomePage.jsx]"]
  node_navbar["Public navigation<br/>[Navbar.jsx]"]
  node_contact["Contact page<br/>[Contact.jsx]"]
  node_footer["Public footer<br/>[Footer.jsx]"]
end

subgraph group_identity["Identity and access"]
  node_login["Login<br/>[LoginPage.jsx]"]
  node_signup["Signup<br/>[SignUpPage.jsx]"]
  node_verify["Signup verification<br/>[Verify.jsx]"]
  node_access_guard["Protected routes<br/>[Protected.jsx]"]
end

subgraph group_student["Student portal"]
  node_student_dashboard["Student dashboard"]
  node_student_attendance["Attendance view"]
  node_student_result["Results view<br/>[StudentResult.jsx]"]
  node_student_notice["Notices view<br/>[StudentNotice.jsx]"]
  node_student_courses["Courses view<br/>[Studentcourses.jsx]"]
  node_student_schedule["Schedule view<br/>[StudentSchdule.jsx]"]
  node_student_nav["Student navigation<br/>[Sidebar.jsx]"]
end

subgraph group_staff["Staff portal"]
  node_staff_dashboard["Staff dashboard<br/>[StaffDashboard.jsx]"]
  node_upload_attendance["Upload attendance"]
  node_upload_marks["Upload marks<br/>[UploadMarks.jsx]"]
  node_staff_nav["Staff navigation<br/>[Sidebar.jsx]"]
end

subgraph group_services["Backend and integrations"]
  node_admin["Admin management<br/>[Admindashboard.jsx]"]
  node_backend["Express API server<br/>[server.js]"]
  node_database[("MongoDB")]
  node_socket_service["Socket service"]
  node_medical_leave["Medical leave workflow"]
end

node_visitor(("Visitor"))
node_student_actor(("Student"))
node_staff_actor(("Staff member"))
node_admin_actor(("Administrator"))

node_visitor -->|"opens"| node_react_app
node_react_app -->|"routes to"| node_home
node_react_app -->|"routes to"| node_login
node_react_app -->|"routes to"| node_signup
node_react_app -->|"routes to"| node_contact
node_react_app -->|"routes to"| node_verify
node_react_app -->|"guards routes"| node_access_guard
node_react_app -->|"routes to"| node_student_dashboard
node_react_app -->|"routes to"| node_student_attendance
node_react_app -->|"routes to"| node_student_result
node_react_app -->|"routes to"| node_student_notice
node_react_app -->|"routes to"| node_student_courses
node_react_app -->|"routes to"| node_student_schedule
node_react_app -->|"routes to"| node_staff_dashboard
node_react_app -->|"routes to"| node_upload_attendance
node_react_app -->|"routes to"| node_upload_marks
node_react_app -->|"routes to"| node_admin
node_home -->|"renders"| node_navbar
node_home -->|"renders"| node_footer
node_contact -->|"renders"| node_navbar
node_visitor -->|"authenticates"| node_login
node_visitor -->|"registers"| node_signup
node_signup -->|"navigates to"| node_verify
node_login -.->|"posts credentials"| node_backend
node_signup -.->|"posts registration"| node_backend
node_login -->|"routes by role"| node_student_dashboard
node_login -->|"routes by role"| node_staff_dashboard
node_login -->|"routes by role"| node_admin
node_student_actor -->|"views portal"| node_student_dashboard
node_student_dashboard -->|"renders"| node_student_nav
node_student_actor -.->|"checks attendance"| node_student_attendance
node_student_actor -.->|"views marks"| node_student_result
node_student_actor -.->|"reads notices"| node_student_notice
node_student_actor -.->|"views courses"| node_student_courses
node_student_actor -.->|"views schedule"| node_student_schedule
node_student_actor -.->|"requests leave"| node_medical_leave
node_staff_actor -->|"opens portal"| node_staff_dashboard
node_staff_dashboard -->|"renders"| node_staff_nav
node_staff_actor -->|"uploads attendance"| node_upload_attendance
node_upload_attendance -.->|"requests students"| node_backend
node_upload_attendance -.->|"posts attendance"| node_backend
node_staff_actor -->|"uploads marks"| node_upload_marks
node_upload_marks -.->|"requests students"| node_backend
node_upload_marks -.->|"posts marks"| node_backend
node_admin_actor -.->|"manages records"| node_admin
node_admin_actor -.->|"reviews requests"| node_medical_leave
node_admin_actor -.->|"uses APIs"| node_backend
node_medical_leave -.->|"approval data"| node_backend

click node_react_app "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/App.jsx"
click node_home "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/HomePage.jsx"
click node_navbar "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Navbar.jsx"
click node_contact "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Contact.jsx"
click node_footer "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Footer.jsx"
click node_login "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/LoginPage.jsx"
click node_signup "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/SignUpPage.jsx"
click node_verify "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Verify.jsx"
click node_access_guard "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Protected.jsx"
click node_student_dashboard "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Student/StudentDashboard.jsx"
click node_student_attendance "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Student/StudentAttendence.jsx"
click node_student_result "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Student/StudentResult.jsx"
click node_student_notice "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Student/StudentNotice.jsx"
click node_student_courses "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Student/Studentcourses.jsx"
click node_student_schedule "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Student/StudentSchdule.jsx"
click node_student_nav "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Student/Sidebar.jsx"
click node_staff_dashboard "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Staff/StaffDashboard.jsx"
click node_upload_attendance "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Staff/UploadAttendance.jsx"
click node_upload_marks "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Staff/UploadMarks.jsx"
click node_staff_nav "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Staff/Sidebar.jsx"
click node_admin "https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Admin/Admindashboard.jsx"
click node_backend "https://github.com/jatint4r/college-management-system/blob/main/Backend/server.js"
click node_medical_leave "https://github.com/jatint4r/college-management-system/tree/main/FrontEnd/src/Components"

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_react_app,node_home,node_navbar,node_contact,node_footer toneBlue
class node_login,node_signup,node_verify,node_access_guard toneAmber
class node_student_dashboard,node_student_attendance,node_student_result,node_student_notice,node_student_courses,node_student_schedule,node_student_nav toneMint
class node_staff_dashboard,node_upload_attendance,node_upload_marks,node_staff_nav toneRose
class node_admin,node_backend,node_database,node_socket_service,node_medical_leave,node_visitor,node_student_actor,node_staff_actor,node_admin_actor toneIndigo
```

## Components

### Web entry and public pages

- [React app routes](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/App.jsx): `FrontEnd/src/App.jsx`
- [Home page](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/HomePage.jsx): `FrontEnd/src/Components/HomePage.jsx`
- [Public navigation](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Navbar.jsx): `FrontEnd/src/Components/Navbar.jsx`
- [Contact page](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Contact.jsx): `FrontEnd/src/Components/Contact.jsx`
- [Public footer](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Footer.jsx): `FrontEnd/src/Components/Footer.jsx`

### Identity and access

- [Login](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/LoginPage.jsx): `FrontEnd/src/Components/LoginPage.jsx`
- [Signup](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/SignUpPage.jsx): `FrontEnd/src/Components/SignUpPage.jsx`
- [Signup verification](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Verify.jsx): `FrontEnd/src/Components/Verify.jsx`
- [Protected routes](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Protected.jsx): `FrontEnd/src/Components/Protected.jsx`

### Student portal

- [Student dashboard](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Student/StudentDashboard.jsx): `FrontEnd/src/Components/Student/StudentDashboard.jsx`
- [Attendance view](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Student/StudentAttendence.jsx): `FrontEnd/src/Components/Student/StudentAttendence.jsx`
- [Results view](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Student/StudentResult.jsx): `FrontEnd/src/Components/Student/StudentResult.jsx`
- [Notices view](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Student/StudentNotice.jsx): `FrontEnd/src/Components/Student/StudentNotice.jsx`
- [Courses view](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Student/Studentcourses.jsx): `FrontEnd/src/Components/Student/Studentcourses.jsx`
- [Schedule view](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Student/StudentSchdule.jsx): `FrontEnd/src/Components/Student/StudentSchdule.jsx`
- [Student navigation](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Student/Sidebar.jsx): `FrontEnd/src/Components/Student/Sidebar.jsx`

### Staff portal

- [Staff dashboard](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Staff/StaffDashboard.jsx): `FrontEnd/src/Components/Staff/StaffDashboard.jsx`
- [Upload attendance](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Staff/UploadAttendance.jsx): `FrontEnd/src/Components/Staff/UploadAttendance.jsx`
- [Upload marks](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Staff/UploadMarks.jsx): `FrontEnd/src/Components/Staff/UploadMarks.jsx`
- [Staff navigation](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Staff/Sidebar.jsx): `FrontEnd/src/Components/Staff/Sidebar.jsx`

### Backend and integrations

- [Admin management](https://github.com/jatint4r/college-management-system/blob/main/FrontEnd/src/Components/Admin/Admindashboard.jsx): `FrontEnd/src/Components/Admin/Admindashboard.jsx`
- [Express API server](https://github.com/jatint4r/college-management-system/blob/main/Backend/server.js): `Backend/server.js`
- **MongoDB**
- **Socket service**
- [Medical leave workflow](https://github.com/jatint4r/college-management-system/tree/main/FrontEnd/src/Components): `FrontEnd/src/Components`

### Other components

- **Visitor**
- **Student**
- **Staff member**
- **Administrator**

## Connections

- Visitor → React app routes: opens
- React app routes → Home page: routes to (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Login: routes to (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Signup: routes to (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Contact page: routes to (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Signup verification: routes to (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Protected routes: guards routes (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Student dashboard: routes to (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Attendance view: routes to (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Results view: routes to (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Notices view: routes to (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Courses view: routes to (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Schedule view: routes to (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Staff dashboard: routes to (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Upload attendance: routes to (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Upload marks: routes to (evidence: `FrontEnd/src/App.jsx`)
- React app routes → Admin management: routes to (evidence: `FrontEnd/src/App.jsx`)
- Home page → Public navigation: renders (evidence: `FrontEnd/src/Components/HomePage.jsx`)
- Home page → Public footer: renders (evidence: `FrontEnd/src/Components/HomePage.jsx`)
- Contact page → Public navigation: renders (evidence: `FrontEnd/src/Components/Contact.jsx`)
- Visitor → Login: authenticates (evidence: `FrontEnd/src/Components/LoginPage.jsx`)
- Visitor → Signup: registers (evidence: `FrontEnd/src/Components/SignUpPage.jsx`)
- Signup → Signup verification: navigates to (evidence: `FrontEnd/src/Components/SignUpPage.jsx`)
- Login → Express API server: posts credentials (evidence: `FrontEnd/src/Components/LoginPage.jsx`)
- Signup → Express API server: posts registration (evidence: `FrontEnd/src/Components/SignUpPage.jsx`)
- Login → Student dashboard: routes by role (evidence: `FrontEnd/src/Components/LoginPage.jsx`)
- Login → Staff dashboard: routes by role (evidence: `FrontEnd/src/Components/LoginPage.jsx`)
- Login → Admin management: routes by role (evidence: `FrontEnd/src/Components/LoginPage.jsx`)
- Student → Student dashboard: views portal
- Student dashboard → Student navigation: renders (evidence: `FrontEnd/src/Components/Student/StudentDashboard.jsx`)
- Student → Attendance view: checks attendance (evidence: `README.md`)
- Student → Results view: views marks (evidence: `README.md`)
- Student → Notices view: reads notices (evidence: `README.md`)
- Student → Courses view: views courses
- Student → Schedule view: views schedule
- Student → Medical leave workflow: requests leave (evidence: `README.md`)
- Staff member → Staff dashboard: opens portal
- Staff dashboard → Staff navigation: renders (evidence: `FrontEnd/src/Components/Staff/StaffDashboard.jsx`)
- Staff member → Upload attendance: uploads attendance (evidence: `FrontEnd/src/Components/Staff/UploadAttendance.jsx`)
- Upload attendance → Express API server: requests students (evidence: `FrontEnd/src/Components/Staff/UploadAttendance.jsx`)
- Upload attendance → Express API server: posts attendance (evidence: `FrontEnd/src/Components/Staff/UploadAttendance.jsx`)
- Staff member → Upload marks: uploads marks (evidence: `FrontEnd/src/Components/Staff/UploadMarks.jsx`)
- Upload marks → Express API server: requests students (evidence: `FrontEnd/src/Components/Staff/UploadMarks.jsx`)
- Upload marks → Express API server: posts marks (evidence: `FrontEnd/src/Components/Staff/UploadMarks.jsx`)
- Administrator → Admin management: manages records (evidence: `README.md`)
- Administrator → Medical leave workflow: reviews requests (evidence: `README.md`)
- Administrator → Express API server: uses APIs (evidence: `README.md`)
- Medical leave workflow → Express API server: approval data
