# kumarianetham-bot/edunova architecture

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

- Interactive diagram: https://gitdiagram.com/kumarianetham-bot/edunova
- Repository: https://github.com/kumarianetham-bot/edunova

## Overview

EduNova is a FastAPI learning-management API. Admins, lecturers, and students use its REST endpoints to manage accounts, courses, learning activities, and communication, then retrieve dashboards and reports. The documented product spans authentication, course and people administration, assignments and quizzes, schedules and resources, messaging, announcements, notifications, uploads, and reporting. The graph shows the app’s router registration, shared persistence and authentication dependencies, plus the upload integration. Some less-sampled capabilities are included based on README descriptions and router registration; their internal calls are not inferred.

Main entry points: [`main.py`](https://github.com/kumarianetham-bot/edunova/blob/main/main.py) (API app), [`database/db.py`](https://github.com/kumarianetham-bot/edunova/blob/main/database/db.py) (SQLAlchemy session), [`models/models.py`](https://github.com/kumarianetham-bot/edunova/blob/main/models/models.py) (LMS data models), [`routers/auth.py`](https://github.com/kumarianetham-bot/edunova/blob/main/routers/auth.py) (Auth routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["API entry"]
  node_api["API app<br/>[main.py]"]
end

subgraph group_identity["Identity"]
  node_auth_routes["Auth routes<br/>[auth.py]"]
  node_auth_helpers["JWT and roles<br/>[auth.py]"]
  node_core_security["Core security<br/>[security.py]"]
end

subgraph group_learning["Learning management"]
  node_admin_routes["Admin dashboard<br/>[admin.py]"]
  node_course_routes["Courses and enrollment<br/>[courses.py]"]
  node_student_routes["Student management<br/>[students.py]"]
  node_lecturer_routes["Lecturer management<br/>[lecturers.py]"]
  node_lecturer_dashboard["Lecturer dashboard"]
  node_student_dashboard["Student dashboard"]
  node_assignments["Assignments and grading<br/>[assignments.py]"]
  node_quizzes["Quizzes and attempts<br/>[quizzes.py]"]
  node_schedule["Class schedules<br/>[schedule.py]"]
  node_resources["Course resources<br/>[resources.py]"]
end

subgraph group_engagement["Communication and insight"]
  node_reports["Reports and feedback<br/>[reports.py]"]
  node_announcements["Announcements<br/>[announcements.py]"]
  node_notifications["Notifications<br/>[notifications.py]"]
  node_messages["Direct messages<br/>[messages.py]"]
end

subgraph group_platform["Persistence and files"]
  node_uploads["Upload routes<br/>[uploads.py]"]
  node_cloudinary["Cloudinary storage"]
  node_db_session[("SQLAlchemy session<br/>[db.py]")]
  node_orm_models["LMS data models<br/>[models.py]"]
  node_core_db[("Core database setup<br/>[database.py]")]
  node_core_models["Core model definitions<br/>[models.py]"]
end

node_admin_actor(("Admin"))
node_lecturer_actor(("Lecturer"))
node_student_actor(("Student"))

node_api -->|"creates tables"| node_db_session
node_api -->|"registers"| node_auth_routes
node_api -->|"registers"| node_admin_routes
node_api -->|"registers"| node_course_routes
node_api -->|"registers"| node_student_routes
node_api -->|"registers"| node_lecturer_routes
node_api -->|"registers"| node_reports
node_api -->|"registers"| node_announcements
node_api -->|"registers"| node_notifications
node_api -->|"registers"| node_lecturer_dashboard
node_api -->|"registers"| node_assignments
node_api -->|"registers"| node_quizzes
node_api -->|"registers"| node_messages
node_api -->|"registers"| node_schedule
node_api -->|"registers"| node_resources
node_api -->|"registers"| node_uploads
node_api -->|"registers"| node_student_dashboard
node_auth_routes -->|"uses"| node_auth_helpers
node_auth_helpers -->|"gets session"| node_db_session
node_auth_helpers -->|"loads user"| node_orm_models
node_auth_routes -->|"queries and writes"| node_db_session
node_course_routes -->|"queries and writes"| node_db_session
node_course_routes -->|"uses entities"| node_orm_models
node_assignments -->|"queries and writes"| node_db_session
node_assignments -->|"uses entities"| node_orm_models
node_quizzes -->|"queries and writes"| node_db_session
node_quizzes -->|"uses entities"| node_orm_models
node_student_dashboard -->|"queries"| node_db_session
node_student_dashboard -->|"uses entities"| node_orm_models
node_lecturer_dashboard -->|"queries"| node_db_session
node_lecturer_dashboard -->|"uses entities"| node_orm_models
node_uploads -->|"uploads files"| node_cloudinary
node_orm_models -->|"uses base"| node_db_session
node_admin_actor -.->|"calls endpoints"| node_api
node_lecturer_actor -.->|"calls endpoints"| node_api
node_student_actor -.->|"calls endpoints"| node_api
node_core_models -->|"uses base"| node_core_db
node_core_security -->|"references"| node_core_db
node_core_security -->|"references"| node_core_models

click node_api "https://github.com/kumarianetham-bot/edunova/blob/main/main.py"
click node_auth_routes "https://github.com/kumarianetham-bot/edunova/blob/main/routers/auth.py"
click node_auth_helpers "https://github.com/kumarianetham-bot/edunova/blob/main/utils/auth.py"
click node_admin_routes "https://github.com/kumarianetham-bot/edunova/blob/main/routers/admin.py"
click node_course_routes "https://github.com/kumarianetham-bot/edunova/blob/main/routers/courses.py"
click node_student_routes "https://github.com/kumarianetham-bot/edunova/blob/main/routers/students.py"
click node_lecturer_routes "https://github.com/kumarianetham-bot/edunova/blob/main/routers/lecturers.py"
click node_lecturer_dashboard "https://github.com/kumarianetham-bot/edunova/blob/main/routers/lecturer_dashboard.py"
click node_student_dashboard "https://github.com/kumarianetham-bot/edunova/blob/main/routers/student_dashboard.py"
click node_assignments "https://github.com/kumarianetham-bot/edunova/blob/main/routers/assignments.py"
click node_quizzes "https://github.com/kumarianetham-bot/edunova/blob/main/routers/quizzes.py"
click node_schedule "https://github.com/kumarianetham-bot/edunova/blob/main/routers/schedule.py"
click node_resources "https://github.com/kumarianetham-bot/edunova/blob/main/routers/resources.py"
click node_reports "https://github.com/kumarianetham-bot/edunova/blob/main/routers/reports.py"
click node_announcements "https://github.com/kumarianetham-bot/edunova/blob/main/routers/announcements.py"
click node_notifications "https://github.com/kumarianetham-bot/edunova/blob/main/routers/notifications.py"
click node_messages "https://github.com/kumarianetham-bot/edunova/blob/main/routers/messages.py"
click node_uploads "https://github.com/kumarianetham-bot/edunova/blob/main/routers/uploads.py"
click node_cloudinary "https://github.com/kumarianetham-bot/edunova/blob/main/utils/cloudinary_upload.py"
click node_db_session "https://github.com/kumarianetham-bot/edunova/blob/main/database/db.py"
click node_orm_models "https://github.com/kumarianetham-bot/edunova/blob/main/models/models.py"
click node_core_db "https://github.com/kumarianetham-bot/edunova/blob/main/core/database.py"
click node_core_models "https://github.com/kumarianetham-bot/edunova/blob/main/models.py"
click node_core_security "https://github.com/kumarianetham-bot/edunova/blob/main/core/security.py"

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_api toneBlue
class node_auth_routes,node_auth_helpers,node_core_security toneAmber
class node_admin_routes,node_course_routes,node_student_routes,node_lecturer_routes,node_lecturer_dashboard,node_student_dashboard,node_assignments,node_quizzes,node_schedule,node_resources toneMint
class node_reports,node_announcements,node_notifications,node_messages toneRose
class node_uploads,node_cloudinary,node_db_session,node_orm_models,node_core_db,node_core_models,node_admin_actor,node_lecturer_actor,node_student_actor toneIndigo
```

## Components

### API entry

- [API app](https://github.com/kumarianetham-bot/edunova/blob/main/main.py): `main.py`

### Identity

- [Auth routes](https://github.com/kumarianetham-bot/edunova/blob/main/routers/auth.py): `routers/auth.py`
- [JWT and roles](https://github.com/kumarianetham-bot/edunova/blob/main/utils/auth.py): `utils/auth.py`
- [Core security](https://github.com/kumarianetham-bot/edunova/blob/main/core/security.py): `core/security.py`

### Learning management

- [Admin dashboard](https://github.com/kumarianetham-bot/edunova/blob/main/routers/admin.py): `routers/admin.py`
- [Courses and enrollment](https://github.com/kumarianetham-bot/edunova/blob/main/routers/courses.py): `routers/courses.py`
- [Student management](https://github.com/kumarianetham-bot/edunova/blob/main/routers/students.py): `routers/students.py`
- [Lecturer management](https://github.com/kumarianetham-bot/edunova/blob/main/routers/lecturers.py): `routers/lecturers.py`
- [Lecturer dashboard](https://github.com/kumarianetham-bot/edunova/blob/main/routers/lecturer_dashboard.py): `routers/lecturer_dashboard.py`
- [Student dashboard](https://github.com/kumarianetham-bot/edunova/blob/main/routers/student_dashboard.py): `routers/student_dashboard.py`
- [Assignments and grading](https://github.com/kumarianetham-bot/edunova/blob/main/routers/assignments.py): `routers/assignments.py`
- [Quizzes and attempts](https://github.com/kumarianetham-bot/edunova/blob/main/routers/quizzes.py): `routers/quizzes.py`
- [Class schedules](https://github.com/kumarianetham-bot/edunova/blob/main/routers/schedule.py): `routers/schedule.py`
- [Course resources](https://github.com/kumarianetham-bot/edunova/blob/main/routers/resources.py): `routers/resources.py`

### Communication and insight

- [Reports and feedback](https://github.com/kumarianetham-bot/edunova/blob/main/routers/reports.py): `routers/reports.py`
- [Announcements](https://github.com/kumarianetham-bot/edunova/blob/main/routers/announcements.py): `routers/announcements.py`
- [Notifications](https://github.com/kumarianetham-bot/edunova/blob/main/routers/notifications.py): `routers/notifications.py`
- [Direct messages](https://github.com/kumarianetham-bot/edunova/blob/main/routers/messages.py): `routers/messages.py`

### Persistence and files

- [Upload routes](https://github.com/kumarianetham-bot/edunova/blob/main/routers/uploads.py): `routers/uploads.py`
- [Cloudinary storage](https://github.com/kumarianetham-bot/edunova/blob/main/utils/cloudinary_upload.py): `utils/cloudinary_upload.py`
- [SQLAlchemy session](https://github.com/kumarianetham-bot/edunova/blob/main/database/db.py): `database/db.py`
- [LMS data models](https://github.com/kumarianetham-bot/edunova/blob/main/models/models.py): `models/models.py`
- [Core database setup](https://github.com/kumarianetham-bot/edunova/blob/main/core/database.py): `core/database.py`
- [Core model definitions](https://github.com/kumarianetham-bot/edunova/blob/main/models.py): `models.py`

### Other components

- **Admin**
- **Lecturer**
- **Student**

## Connections

- API app → SQLAlchemy session: creates tables (evidence: `main.py`)
- API app → Auth routes: registers (evidence: `main.py`)
- API app → Admin dashboard: registers (evidence: `main.py`)
- API app → Courses and enrollment: registers (evidence: `main.py`)
- API app → Student management: registers (evidence: `main.py`)
- API app → Lecturer management: registers (evidence: `main.py`)
- API app → Reports and feedback: registers (evidence: `main.py`)
- API app → Announcements: registers (evidence: `main.py`)
- API app → Notifications: registers (evidence: `main.py`)
- API app → Lecturer dashboard: registers (evidence: `main.py`)
- API app → Assignments and grading: registers (evidence: `main.py`)
- API app → Quizzes and attempts: registers (evidence: `main.py`)
- API app → Direct messages: registers (evidence: `main.py`)
- API app → Class schedules: registers (evidence: `main.py`)
- API app → Course resources: registers (evidence: `main.py`)
- API app → Upload routes: registers (evidence: `main.py`)
- API app → Student dashboard: registers (evidence: `main.py`)
- Auth routes → JWT and roles: uses (evidence: `routers/auth.py`)
- JWT and roles → SQLAlchemy session: gets session (evidence: `utils/auth.py`)
- JWT and roles → LMS data models: loads user (evidence: `utils/auth.py`)
- Auth routes → SQLAlchemy session: queries and writes (evidence: `routers/auth.py`)
- Courses and enrollment → SQLAlchemy session: queries and writes (evidence: `routers/courses.py`)
- Courses and enrollment → LMS data models: uses entities (evidence: `routers/courses.py`)
- Assignments and grading → SQLAlchemy session: queries and writes (evidence: `routers/assignments.py`)
- Assignments and grading → LMS data models: uses entities (evidence: `routers/assignments.py`)
- Quizzes and attempts → SQLAlchemy session: queries and writes (evidence: `routers/quizzes.py`)
- Quizzes and attempts → LMS data models: uses entities (evidence: `routers/quizzes.py`)
- Student dashboard → SQLAlchemy session: queries (evidence: `routers/student_dashboard.py`)
- Student dashboard → LMS data models: uses entities (evidence: `routers/student_dashboard.py`)
- Lecturer dashboard → SQLAlchemy session: queries (evidence: `routers/lecturer_dashboard.py`)
- Lecturer dashboard → LMS data models: uses entities (evidence: `routers/lecturer_dashboard.py`)
- Upload routes → Cloudinary storage: uploads files (evidence: `routers/uploads.py`)
- LMS data models → SQLAlchemy session: uses base (evidence: `models/models.py`)
- Admin → API app: calls endpoints (evidence: `README.md`)
- Lecturer → API app: calls endpoints (evidence: `README.md`)
- Student → API app: calls endpoints (evidence: `README.md`)
- Core model definitions → Core database setup: uses base (evidence: `models.py`)
- Core security → Core database setup: references (evidence: `core/security.py`)
- Core security → Core model definitions: references (evidence: `core/security.py`)
