# kavidharshini922/student-attendance-and-performance-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/kavidharshini922/student-attendance-and-performance-management-system
- Repository: https://github.com/kavidharshini922/student-attendance-and-performance-management-system

## Overview

This is a student attendance and academic-performance management application: a React frontend provides role-based entry points and screens, while a Spring backend exposes management and reporting APIs. The main workflow is users navigating the frontend to manage student records, attendance, and marks, then view summaries; the sampled admin dashboard also fetches backend data and embeds an AI assistant. The README is empty. Some frontend API connections and dashboard routes are not fully shown, so those relationships are omitted rather than inferred.

Main entry points: [`frontend/src/App.jsx`](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/App.jsx) (App routes), [`frontend/src/pages/AdminDashboard.jsx`](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/AdminDashboard.jsx) (Admin dashboard), [`attendance-system/src/main/java/attendance_system/ai/AiAssistantService.java`](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/ai/AiAssistantService.java) (Assistant analysis), [`attendance-system/src/main/java/attendance_system/repository/AttendanceRepository.java`](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/repository/AttendanceRepository.java) (Attendance records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Frontend experience"]
  node_router["App routes<br/>[App.jsx]"]
  node_welcome["Welcome page<br/>[Welcome.jsx]"]
  node_login["Role login<br/>[RoleLogin.jsx]"]
  node_adminui["Admin dashboard<br/>[AdminDashboard.jsx]"]
  node_studentui["Student views"]
  node_teacherui["Teacher workspace<br/>[Teacher.jsx]"]
end

subgraph group_records["Academic records"]
  node_studentrecords["Student management<br/>[ViewStudents.jsx]"]
  node_teacherrecords["Teacher directory<br/>[ViewTeachers.jsx]"]
  node_attendanceui["Attendance workflows<br/>[ViewAttendance.jsx]"]
  node_marksui["Marks workflows<br/>[ViewMarks.jsx]"]
  node_attendanceentity["Attendance model<br/>[Attendance.java]"]
  node_performanceentity["Performance model<br/>[Performance.java]"]
  node_studententity["Student model<br/>[Student.java]"]
  node_teacherentity["Teacher model<br/>[Teacher.java]"]
end

subgraph group_api["Backend API"]
  node_studentapi["Student API"]
  node_teacherapi["Teacher API"]
  node_attendanceapi["Attendance API"]
  node_performanceapi["Performance API"]
  node_authapi["Authentication API"]
  node_aiapi["Assistant API"]
  node_attservice["Attendance logic"]
  node_perfservice["Performance logic"]
  node_studentservice["Student logic"]
  node_attrepo[("Attendance records")]
  node_perfrepo[("Performance records")]
  node_studentrepo[("Student records")]
  node_userentity["User model<br/>[User.java]"]
end

subgraph group_insights["Reports and assistance"]
  node_reports["Academic reports"]
  node_assistantui["Assistant widget<br/>[AIAssistant.jsx]"]
  node_aiservice["Assistant analysis"]
end

node_user(("School user"))

node_user -->|"opens"| node_router
node_router -->|"routes to"| node_welcome
node_router -->|"routes to"| node_login
node_router -->|"routes to"| node_adminui
node_router -->|"routes to"| node_studentui
node_router -->|"routes to"| node_studentrecords
node_router -->|"routes to"| node_attendanceui
node_router -->|"routes to"| node_marksui
node_router -->|"routes to"| node_teacherui
node_adminui -->|"renders"| node_assistantui
node_adminui -.->|"fetches"| node_performanceapi
node_studentapi -->|"delegates"| node_studentservice
node_studentservice -->|"reads and writes"| node_studentrepo
node_studentrepo -->|"persists"| node_studententity
node_teacherapi -->|"uses"| node_teacherentity
node_attendanceapi -->|"delegates"| node_attservice
node_attservice -->|"reads and writes"| node_attrepo
node_attrepo -->|"persists"| node_attendanceentity
node_performanceapi -->|"delegates"| node_perfservice
node_perfservice -->|"reads and writes"| node_perfrepo
node_perfrepo -->|"persists"| node_performanceentity
node_authapi -->|"uses"| node_userentity
node_aiapi -->|"delegates"| node_aiservice
node_aiservice -->|"queries"| node_attrepo
node_aiservice -->|"queries"| node_perfrepo

click node_router "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/App.jsx"
click node_welcome "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/Welcome.jsx"
click node_login "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/RoleLogin.jsx"
click node_adminui "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/AdminDashboard.jsx"
click node_studentui "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/StudentAttendance.jsx"
click node_teacherui "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/Teacher.jsx"
click node_studentrecords "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/students/ViewStudents.jsx"
click node_teacherrecords "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/teachers/ViewTeachers.jsx"
click node_attendanceui "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/attendance/ViewAttendance.jsx"
click node_marksui "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/performance/ViewMarks.jsx"
click node_reports "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/reports/PerformanceSummary.jsx"
click node_assistantui "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/components/AIAssistant.jsx"
click node_studentapi "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/controller/StudentController.java"
click node_teacherapi "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/controller/TeacherController.java"
click node_attendanceapi "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/controller/AttendanceController.java"
click node_performanceapi "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/controller/PerformanceController.java"
click node_authapi "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/controller/AuthController.java"
click node_aiapi "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/ai/AiAssistantController.java"
click node_aiservice "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/ai/AiAssistantService.java"
click node_attservice "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/service/AttendanceService.java"
click node_perfservice "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/service/PerformanceService.java"
click node_studentservice "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/service/StudentService.java"
click node_attrepo "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/repository/AttendanceRepository.java"
click node_perfrepo "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/repository/PerformanceRepository.java"
click node_studentrepo "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/repository/StudentRepository.java"
click node_attendanceentity "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/entity/Attendance.java"
click node_performanceentity "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/entity/Performance.java"
click node_studententity "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/entity/Student.java"
click node_teacherentity "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/entity/Teacher.java"
click node_userentity "https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/entity/User.java"

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_router,node_welcome,node_login,node_adminui,node_studentui,node_teacherui,node_user toneBlue
class node_studentrecords,node_teacherrecords,node_attendanceui,node_marksui,node_attendanceentity,node_performanceentity,node_studententity,node_teacherentity toneAmber
class node_studentapi,node_teacherapi,node_attendanceapi,node_performanceapi,node_authapi,node_aiapi,node_attservice,node_perfservice,node_studentservice,node_attrepo,node_perfrepo,node_studentrepo,node_userentity toneMint
class node_reports,node_assistantui,node_aiservice toneRose
```

## Components

### Frontend experience

- [App routes](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Welcome page](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/Welcome.jsx): `frontend/src/pages/Welcome.jsx`
- [Role login](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/RoleLogin.jsx): `frontend/src/pages/RoleLogin.jsx`
- [Admin dashboard](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/AdminDashboard.jsx): `frontend/src/pages/AdminDashboard.jsx`
- [Student views](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/StudentAttendance.jsx): `frontend/src/pages/StudentAttendance.jsx`
- [Teacher workspace](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/Teacher.jsx): `frontend/src/pages/Teacher.jsx`

### Academic records

- [Student management](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/students/ViewStudents.jsx): `frontend/src/pages/students/ViewStudents.jsx`
- [Teacher directory](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/teachers/ViewTeachers.jsx): `frontend/src/pages/teachers/ViewTeachers.jsx`
- [Attendance workflows](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/attendance/ViewAttendance.jsx): `frontend/src/pages/attendance/ViewAttendance.jsx`
- [Marks workflows](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/performance/ViewMarks.jsx): `frontend/src/pages/performance/ViewMarks.jsx`
- [Attendance model](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/entity/Attendance.java): `attendance-system/src/main/java/attendance_system/entity/Attendance.java`
- [Performance model](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/entity/Performance.java): `attendance-system/src/main/java/attendance_system/entity/Performance.java`
- [Student model](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/entity/Student.java): `attendance-system/src/main/java/attendance_system/entity/Student.java`
- [Teacher model](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/entity/Teacher.java): `attendance-system/src/main/java/attendance_system/entity/Teacher.java`

### Backend API

- [Student API](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/controller/StudentController.java): `attendance-system/src/main/java/attendance_system/controller/StudentController.java`
- [Teacher API](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/controller/TeacherController.java): `attendance-system/src/main/java/attendance_system/controller/TeacherController.java`
- [Attendance API](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/controller/AttendanceController.java): `attendance-system/src/main/java/attendance_system/controller/AttendanceController.java`
- [Performance API](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/controller/PerformanceController.java): `attendance-system/src/main/java/attendance_system/controller/PerformanceController.java`
- [Authentication API](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/controller/AuthController.java): `attendance-system/src/main/java/attendance_system/controller/AuthController.java`
- [Assistant API](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/ai/AiAssistantController.java): `attendance-system/src/main/java/attendance_system/ai/AiAssistantController.java`
- [Attendance logic](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/service/AttendanceService.java): `attendance-system/src/main/java/attendance_system/service/AttendanceService.java`
- [Performance logic](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/service/PerformanceService.java): `attendance-system/src/main/java/attendance_system/service/PerformanceService.java`
- [Student logic](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/service/StudentService.java): `attendance-system/src/main/java/attendance_system/service/StudentService.java`
- [Attendance records](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/repository/AttendanceRepository.java): `attendance-system/src/main/java/attendance_system/repository/AttendanceRepository.java`
- [Performance records](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/repository/PerformanceRepository.java): `attendance-system/src/main/java/attendance_system/repository/PerformanceRepository.java`
- [Student records](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/repository/StudentRepository.java): `attendance-system/src/main/java/attendance_system/repository/StudentRepository.java`
- [User model](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/entity/User.java): `attendance-system/src/main/java/attendance_system/entity/User.java`

### Reports and assistance

- [Academic reports](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/pages/reports/PerformanceSummary.jsx): `frontend/src/pages/reports/PerformanceSummary.jsx`
- [Assistant widget](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/frontend/src/components/AIAssistant.jsx): `frontend/src/components/AIAssistant.jsx`
- [Assistant analysis](https://github.com/kavidharshini922/student-attendance-and-performance-management-system/blob/main/attendance-system/src/main/java/attendance_system/ai/AiAssistantService.java): `attendance-system/src/main/java/attendance_system/ai/AiAssistantService.java`

### Other components

- **School user**

## Connections

- School user → App routes: opens (evidence: `frontend/src/App.jsx`)
- App routes → Welcome page: routes to (evidence: `frontend/src/App.jsx`)
- App routes → Role login: routes to (evidence: `frontend/src/App.jsx`)
- App routes → Admin dashboard: routes to (evidence: `frontend/src/App.jsx`)
- App routes → Student views: routes to (evidence: `frontend/src/App.jsx`)
- App routes → Student management: routes to (evidence: `frontend/src/App.jsx`)
- App routes → Attendance workflows: routes to (evidence: `frontend/src/App.jsx`)
- App routes → Marks workflows: routes to (evidence: `frontend/src/App.jsx`)
- App routes → Teacher workspace: routes to (evidence: `frontend/src/App.jsx`)
- Admin dashboard → Assistant widget: renders (evidence: `frontend/src/pages/AdminDashboard.jsx`)
- Admin dashboard → Performance API: fetches
- Student API → Student logic: delegates (evidence: `attendance-system/src/main/java/attendance_system/controller/StudentController.java`)
- Student logic → Student records: reads and writes (evidence: `attendance-system/src/main/java/attendance_system/service/StudentService.java`)
- Student records → Student model: persists (evidence: `attendance-system/src/main/java/attendance_system/repository/StudentRepository.java`)
- Teacher API → Teacher model: uses (evidence: `attendance-system/src/main/java/attendance_system/controller/TeacherController.java`)
- Attendance API → Attendance logic: delegates (evidence: `attendance-system/src/main/java/attendance_system/controller/AttendanceController.java`)
- Attendance logic → Attendance records: reads and writes (evidence: `attendance-system/src/main/java/attendance_system/service/AttendanceService.java`)
- Attendance records → Attendance model: persists (evidence: `attendance-system/src/main/java/attendance_system/repository/AttendanceRepository.java`)
- Performance API → Performance logic: delegates (evidence: `attendance-system/src/main/java/attendance_system/controller/PerformanceController.java`)
- Performance logic → Performance records: reads and writes (evidence: `attendance-system/src/main/java/attendance_system/service/PerformanceService.java`)
- Performance records → Performance model: persists (evidence: `attendance-system/src/main/java/attendance_system/repository/PerformanceRepository.java`)
- Authentication API → User model: uses (evidence: `attendance-system/src/main/java/attendance_system/controller/AuthController.java`)
- Assistant API → Assistant analysis: delegates (evidence: `attendance-system/src/main/java/attendance_system/ai/AiAssistantController.java`)
- Assistant analysis → Attendance records: queries (evidence: `attendance-system/src/main/java/attendance_system/ai/AiAssistantService.java`)
- Assistant analysis → Performance records: queries (evidence: `attendance-system/src/main/java/attendance_system/ai/AiAssistantService.java`)
