# kumarvalavala66/acadex architecture

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

- Interactive diagram: https://gitdiagram.com/kumarvalavala66/acadex
- Repository: https://github.com/kumarvalavala66/acadex

## Overview

Acadex is a student organizer. Students use its React app to manage tasks and deadlines, view exams and holidays, track learning tasks and reflections, and review progress; the app sends requests to a FastAPI backend, which persists data in SQLite. Authentication supports registration, login, and profile/password management. The graph includes documented product areas whose implementation was not sampled; those relationships are dashed where the excerpts do not establish the wiring.

Main entry points: [`frontend/src/App.jsx`](https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/App.jsx) (App shell), [`frontend/src/services/api.js`](https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/services/api.js) (API client), [`backend/app/main.py`](https://github.com/kumarvalavala66/acadex/blob/main/backend/app/main.py) (FastAPI app), [`backend/app/routers/auth.py`](https://github.com/kumarvalavala66/acadex/blob/main/backend/app/routers/auth.py) (Authentication routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Student app"]
  node_app["App shell<br/>[App.jsx]"]
  node_calendar["Calendar<br/>[Calendar.jsx]"]
  node_work["Work tasks<br/>[Work.jsx]"]
  node_learning["Learning diary<br/>[Learning.jsx]"]
  node_exams["Exam results<br/>[Exams.jsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_achievements["Achievements<br/>[Achievements.jsx]"]
  node_board["Board<br/>[Board.jsx]"]
  node_login["Login and register<br/>[Login.jsx]"]
  node_settings["Settings<br/>[Settings.jsx]"]
  node_api_client["API client<br/>[api.js]"]
end

subgraph group_api["Backend API"]
  node_fastapi["FastAPI app<br/>[main.py]"]
  node_auth_routes["Authentication routes<br/>[auth.py]"]
  node_task_routes["Task routes<br/>[tasks.py]"]
  node_exam_routes["Exam routes<br/>[exams.py]"]
  node_holiday_routes["Holiday routes<br/>[holidays.py]"]
  node_learning_routes["Learning routes<br/>[learning.py]"]
end

subgraph group_domain["Organizer features"]
end

subgraph group_storage["Persistence and security"]
  node_database["Database session<br/>[database.py]"]
  node_sqlite[("SQLite database<br/>[database.py]")]
  node_security["Token security<br/>[security.py]"]
  node_user_model["User model<br/>[user.py]"]
  node_diary_model["Diary model<br/>[diary_entry.py]"]
  node_learning_model["Learning task model<br/>[learning_task.py]"]
end

node_student(("Student"))

node_student -->|"uses"| node_app
node_app -.->|"connects to"| node_fastapi
node_app -.->|"routes to"| node_calendar
node_app -.->|"routes to"| node_work
node_app -.->|"routes to"| node_learning
node_app -.->|"routes to"| node_exams
node_app -.->|"routes to"| node_dashboard
node_app -.->|"routes to"| node_achievements
node_app -.->|"routes to"| node_board
node_app -.->|"routes to"| node_login
node_app -.->|"routes to"| node_settings
node_calendar -->|"requests data"| node_api_client
node_work -->|"requests data"| node_api_client
node_learning -->|"requests data"| node_api_client
node_api_client -->|"sends HTTP requests"| node_fastapi
node_api_client -.->|"calls auth endpoints"| node_auth_routes
node_api_client -.->|"calls task endpoints"| node_task_routes
node_api_client -.->|"calls exam endpoints"| node_exam_routes
node_api_client -.->|"calls holiday endpoint"| node_holiday_routes
node_api_client -.->|"calls learning endpoints"| node_learning_routes
node_fastapi -->|"registers router"| node_auth_routes
node_fastapi -->|"registers router"| node_task_routes
node_fastapi -->|"registers router"| node_exam_routes
node_fastapi -->|"registers router"| node_holiday_routes
node_fastapi -->|"registers router"| node_learning_routes
node_fastapi -->|"creates tables"| node_database
node_auth_routes -->|"gets session"| node_database
node_auth_routes -->|"uses password and token functions"| node_security
node_security -->|"gets session"| node_database
node_security -->|"queries user"| node_user_model
node_database -->|"connects to"| node_sqlite
node_learning_routes -.->|"uses"| node_learning_model
node_learning_routes -.->|"uses"| node_diary_model

click node_app "https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/App.jsx"
click node_calendar "https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Calendar.jsx"
click node_work "https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Work.jsx"
click node_learning "https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Learning.jsx"
click node_exams "https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Exams.jsx"
click node_dashboard "https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Dashboard.jsx"
click node_achievements "https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Achievements.jsx"
click node_board "https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Board.jsx"
click node_login "https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Login.jsx"
click node_settings "https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Settings.jsx"
click node_api_client "https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/services/api.js"
click node_fastapi "https://github.com/kumarvalavala66/acadex/blob/main/backend/app/main.py"
click node_auth_routes "https://github.com/kumarvalavala66/acadex/blob/main/backend/app/routers/auth.py"
click node_task_routes "https://github.com/kumarvalavala66/acadex/blob/main/backend/app/routers/tasks.py"
click node_exam_routes "https://github.com/kumarvalavala66/acadex/blob/main/backend/app/routers/exams.py"
click node_holiday_routes "https://github.com/kumarvalavala66/acadex/blob/main/backend/app/routers/holidays.py"
click node_learning_routes "https://github.com/kumarvalavala66/acadex/blob/main/backend/app/routers/learning.py"
click node_database "https://github.com/kumarvalavala66/acadex/blob/main/backend/app/database.py"
click node_sqlite "https://github.com/kumarvalavala66/acadex/blob/main/backend/app/database.py"
click node_security "https://github.com/kumarvalavala66/acadex/blob/main/backend/app/security.py"
click node_user_model "https://github.com/kumarvalavala66/acadex/blob/main/backend/app/models/user.py"
click node_diary_model "https://github.com/kumarvalavala66/acadex/blob/main/backend/app/models/diary_entry.py"
click node_learning_model "https://github.com/kumarvalavala66/acadex/blob/main/backend/app/models/learning_task.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_app,node_calendar,node_work,node_learning,node_exams,node_dashboard,node_achievements,node_board,node_login,node_settings,node_api_client toneBlue
class node_fastapi,node_auth_routes,node_task_routes,node_exam_routes,node_holiday_routes,node_learning_routes toneAmber
class node_database,node_sqlite,node_security,node_user_model,node_diary_model,node_learning_model toneRose
class node_student toneIndigo
```

## Components

### Student app

- [App shell](https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Calendar](https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Calendar.jsx): `frontend/src/pages/Calendar.jsx`
- [Work tasks](https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Work.jsx): `frontend/src/pages/Work.jsx`
- [Learning diary](https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Learning.jsx): `frontend/src/pages/Learning.jsx`
- [Exam results](https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Exams.jsx): `frontend/src/pages/Exams.jsx`
- [Dashboard](https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Dashboard.jsx): `frontend/src/pages/Dashboard.jsx`
- [Achievements](https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Achievements.jsx): `frontend/src/pages/Achievements.jsx`
- [Board](https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Board.jsx): `frontend/src/pages/Board.jsx`
- [Login and register](https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Login.jsx): `frontend/src/pages/Login.jsx`
- [Settings](https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/pages/Settings.jsx): `frontend/src/pages/Settings.jsx`
- [API client](https://github.com/kumarvalavala66/acadex/blob/main/frontend/src/services/api.js): `frontend/src/services/api.js`

### Backend API

- [FastAPI app](https://github.com/kumarvalavala66/acadex/blob/main/backend/app/main.py): `backend/app/main.py`
- [Authentication routes](https://github.com/kumarvalavala66/acadex/blob/main/backend/app/routers/auth.py): `backend/app/routers/auth.py`
- [Task routes](https://github.com/kumarvalavala66/acadex/blob/main/backend/app/routers/tasks.py): `backend/app/routers/tasks.py`
- [Exam routes](https://github.com/kumarvalavala66/acadex/blob/main/backend/app/routers/exams.py): `backend/app/routers/exams.py`
- [Holiday routes](https://github.com/kumarvalavala66/acadex/blob/main/backend/app/routers/holidays.py): `backend/app/routers/holidays.py`
- [Learning routes](https://github.com/kumarvalavala66/acadex/blob/main/backend/app/routers/learning.py): `backend/app/routers/learning.py`

### Persistence and security

- [Database session](https://github.com/kumarvalavala66/acadex/blob/main/backend/app/database.py): `backend/app/database.py`
- [SQLite database](https://github.com/kumarvalavala66/acadex/blob/main/backend/app/database.py): `backend/app/database.py`
- [Token security](https://github.com/kumarvalavala66/acadex/blob/main/backend/app/security.py): `backend/app/security.py`
- [User model](https://github.com/kumarvalavala66/acadex/blob/main/backend/app/models/user.py): `backend/app/models/user.py`
- [Diary model](https://github.com/kumarvalavala66/acadex/blob/main/backend/app/models/diary_entry.py): `backend/app/models/diary_entry.py`
- [Learning task model](https://github.com/kumarvalavala66/acadex/blob/main/backend/app/models/learning_task.py): `backend/app/models/learning_task.py`

### Other components

- **Student**

## Connections

- Student → App shell: uses (evidence: `README.md`)
- App shell → FastAPI app: connects to
- App shell → Calendar: routes to
- App shell → Work tasks: routes to
- App shell → Learning diary: routes to
- App shell → Exam results: routes to
- App shell → Dashboard: routes to
- App shell → Achievements: routes to
- App shell → Board: routes to
- App shell → Login and register: routes to
- App shell → Settings: routes to
- Calendar → API client: requests data (evidence: `frontend/src/pages/Calendar.jsx`)
- Work tasks → API client: requests data (evidence: `frontend/src/pages/Work.jsx`)
- Learning diary → API client: requests data (evidence: `frontend/src/pages/Learning.jsx`)
- API client → FastAPI app: sends HTTP requests (evidence: `frontend/src/services/api.js`)
- API client → Authentication routes: calls auth endpoints
- API client → Task routes: calls task endpoints
- API client → Exam routes: calls exam endpoints
- API client → Holiday routes: calls holiday endpoint
- API client → Learning routes: calls learning endpoints
- FastAPI app → Authentication routes: registers router (evidence: `backend/app/main.py`)
- FastAPI app → Task routes: registers router (evidence: `backend/app/main.py`)
- FastAPI app → Exam routes: registers router (evidence: `backend/app/main.py`)
- FastAPI app → Holiday routes: registers router (evidence: `backend/app/main.py`)
- FastAPI app → Learning routes: registers router (evidence: `backend/app/main.py`)
- FastAPI app → Database session: creates tables (evidence: `backend/app/main.py`)
- Authentication routes → Database session: gets session (evidence: `backend/app/routers/auth.py`)
- Authentication routes → Token security: uses password and token functions (evidence: `backend/app/routers/auth.py`)
- Token security → Database session: gets session (evidence: `backend/app/security.py`)
- Token security → User model: queries user (evidence: `backend/app/security.py`)
- Database session → SQLite database: connects to (evidence: `backend/app/database.py`)
- Learning routes → Learning task model: uses
- Learning routes → Diary model: uses
