# vibol18/spring_lesstion architecture

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

## Overview

This is a Spring Boot school-management API. The principal workflow is an authenticated user sending a request to a domain controller, which delegates to a service and persists school records. The README documents academics, student/staff, attendance, exams, assignments, fees, library, hostel, transport, communication, and security capabilities. The provided source index contains no application-source excerpts, so the domain branches and their internal calls cannot be verified; paths below identify supported subsystem directories, and only documented relationships are shown.

Main entry points: [`src/main/java/com/example/real_school/RealSchoolApplication.java`](https://github.com/vibol18/spring_lesstion/blob/master/src/main/java/com/example/real_school/RealSchoolApplication.java) (Spring Boot API), [`src/main/java/com/example/real_school/security`](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/security) (JWT authorization), [`src/main/java/com/example/real_school/notification`](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/notification) (Notifications and audit), [`src/main/java/com/example/real_school/academic`](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/academic) (Academics and enrollment)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["API and security"]
  node_app["Spring Boot API"]
  node_auth["JWT authorization"]
  node_notifications["Notifications and audit"]
end

subgraph group_school["School operations"]
  node_academic["Academics and enrollment"]
  node_students["Students and parents"]
  node_staff["Teachers and staff"]
  node_attendance["Attendance"]
end

subgraph group_learning["Learning and assessment"]
  node_timetable["Timetable scheduling"]
  node_exams["Exams and results"]
  node_assignments["Assignments"]
end

subgraph group_services["School services"]
  node_fees["Fees and payments"]
  node_library["Library"]
  node_hostel["Hostel allocation"]
  node_transport["Transport"]
  node_communication["Communication"]
end

node_actor(("API user"))
node_database[("PostgreSQL database")]

node_actor -->|"sends API requests"| node_app
node_app -->|"uses JWT authorization"| node_auth
node_app -->|"exposes school modules"| node_academic
node_app -->|"exposes school modules"| node_students
node_app -->|"exposes school modules"| node_staff
node_app -->|"exposes school modules"| node_attendance
node_app -->|"provides scheduling"| node_timetable
node_app -->|"exposes school modules"| node_exams
node_app -->|"exposes school modules"| node_assignments
node_app -->|"exposes school modules"| node_fees
node_app -->|"exposes school modules"| node_library
node_app -->|"exposes school modules"| node_hostel
node_app -->|"provides transport management"| node_transport
node_app -->|"exposes school modules"| node_communication
node_app -->|"provides event audit"| node_notifications
node_app -->|"uses PostgreSQL"| node_database

click node_app "https://github.com/vibol18/spring_lesstion/blob/master/src/main/java/com/example/real_school/RealSchoolApplication.java"
click node_auth "https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/security"
click node_academic "https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/academic"
click node_students "https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/student"
click node_staff "https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/staff"
click node_attendance "https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/attendance"
click node_exams "https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/exam"
click node_assignments "https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/assignment"
click node_fees "https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/fee"
click node_library "https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/library"
click node_hostel "https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/hostel"
click node_communication "https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/communication"
click node_notifications "https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/notification"

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_app,node_auth,node_notifications,node_actor toneBlue
class node_academic,node_students,node_staff,node_attendance,node_database toneAmber
class node_timetable,node_exams,node_assignments toneMint
class node_fees,node_library,node_hostel,node_transport,node_communication toneRose
```

## Components

### API and security

- [Spring Boot API](https://github.com/vibol18/spring_lesstion/blob/master/src/main/java/com/example/real_school/RealSchoolApplication.java): `src/main/java/com/example/real_school/RealSchoolApplication.java`
- [JWT authorization](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/security): `src/main/java/com/example/real_school/security`
- [Notifications and audit](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/notification): `src/main/java/com/example/real_school/notification`

### School operations

- [Academics and enrollment](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/academic): `src/main/java/com/example/real_school/academic`
- [Students and parents](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/student): `src/main/java/com/example/real_school/student`
- [Teachers and staff](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/staff): `src/main/java/com/example/real_school/staff`
- [Attendance](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/attendance): `src/main/java/com/example/real_school/attendance`

### Learning and assessment

- **Timetable scheduling**
- [Exams and results](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/exam): `src/main/java/com/example/real_school/exam`
- [Assignments](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/assignment): `src/main/java/com/example/real_school/assignment`

### School services

- [Fees and payments](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/fee): `src/main/java/com/example/real_school/fee`
- [Library](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/library): `src/main/java/com/example/real_school/library`
- [Hostel allocation](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/hostel): `src/main/java/com/example/real_school/hostel`
- **Transport**
- [Communication](https://github.com/vibol18/spring_lesstion/tree/master/src/main/java/com/example/real_school/communication): `src/main/java/com/example/real_school/communication`

### Other components

- **API user**
- **PostgreSQL database**

## Connections

- API user → Spring Boot API: sends API requests (evidence: `README.md`)
- Spring Boot API → JWT authorization: uses JWT authorization (evidence: `README.md`)
- Spring Boot API → Academics and enrollment: exposes school modules (evidence: `README.md`)
- Spring Boot API → Students and parents: exposes school modules (evidence: `README.md`)
- Spring Boot API → Teachers and staff: exposes school modules (evidence: `README.md`)
- Spring Boot API → Attendance: exposes school modules (evidence: `README.md`)
- Spring Boot API → Timetable scheduling: provides scheduling (evidence: `README.md`)
- Spring Boot API → Exams and results: exposes school modules (evidence: `README.md`)
- Spring Boot API → Assignments: exposes school modules (evidence: `README.md`)
- Spring Boot API → Fees and payments: exposes school modules (evidence: `README.md`)
- Spring Boot API → Library: exposes school modules (evidence: `README.md`)
- Spring Boot API → Hostel allocation: exposes school modules (evidence: `README.md`)
- Spring Boot API → Transport: provides transport management (evidence: `README.md`)
- Spring Boot API → Communication: exposes school modules (evidence: `README.md`)
- Spring Boot API → Notifications and audit: provides event audit (evidence: `README.md`)
- Spring Boot API → PostgreSQL database: uses PostgreSQL (evidence: `README.md`)
