# pgangadharr3ddy/mini-project architecture

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

## Overview

Smart Classroom Management System combines classroom collaboration features with an AI-assisted learning service. Users enter through either of the two React frontends, navigate classroom and project features, and can use AI study capabilities; the README describes a Spring Boot API between the UI and data services, but that backend is not present in the supplied tree. The AI service exposes transcription, summarization, document Q&A, and skill extraction alongside the separate study-assistant router. Connections for unsampled implementations are limited to documented relationships.

Main entry points: [`frontend/src/App.tsx`](https://github.com/pgangadharr3ddy/mini-project/blob/main/frontend/src/App.tsx) (Classroom app), [`ai-service/app/api`](https://github.com/pgangadharr3ddy/mini-project/tree/main/ai-service/app/api) (AI feature routes), [`ai-service/app/main.py`](https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/main.py) (AI service entry), [`collabhub frontend/src/App.tsx`](https://github.com/pgangadharr3ddy/mini-project/blob/main/collabhub%20frontend/src/App.tsx) (Collaboration app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web applications"]
  node_legacy_app["Classroom app<br/>[App.tsx]"]
  node_collab_app["Collaboration app<br/>[App.tsx]"]
  node_auth["User identity<br/>[AuthContext.tsx]"]
  node_ai_client["AI API client<br/>[aiService.ts]"]
end

subgraph group_classroom["Classroom features"]
  node_classroom_ui["Classroom pages"]
  node_announcements["Announcements"]
  node_timetable["Timetable<br/>[TimetablePage.tsx]"]
  node_events["Events<br/>[EventsPage.tsx]"]
  node_resources["Learning resources<br/>[ResourcesPage.tsx]"]
  node_projects["Projects"]
  node_admin["Administration<br/>[AdminPage.tsx]"]
end

subgraph group_ai["AI learning service"]
  node_ai_entry["AI service entry<br/>[main.py]"]
  node_ai_routes["AI feature routes"]
  node_study_assistant["Study assistant<br/>[study_assistant.py]"]
  node_documents["Document processing"]
  node_chatbot["Document Q&amp;A<br/>[chatbot_service.py]"]
  node_summarization["Summarization"]
  node_transcription["Transcription"]
  node_skills["Skill extraction<br/>[skill_service.py]"]
  node_embedding["Text embeddings"]
  node_vector_store[("Vector storage")]
end

subgraph group_integration["Service integration"]
  node_api_service["Classroom API"]
  node_ollama["Ollama models"]
end

node_user(("Classroom user"))

node_user -->|"uses"| node_legacy_app
node_user -->|"uses"| node_collab_app
node_legacy_app -->|"routes to"| node_classroom_ui
node_collab_app -->|"provides auth"| node_auth
node_collab_app -->|"routes to"| node_projects
node_legacy_app -->|"routes to"| node_timetable
node_legacy_app -->|"routes to"| node_announcements
node_legacy_app -->|"routes to"| node_events
node_legacy_app -->|"routes to"| node_resources
node_legacy_app -->|"routes to"| node_admin
node_user -->|"uses"| node_classroom_ui
node_classroom_ui -.->|"requests data"| node_api_service
node_user -.->|"requests AI"| node_ai_client
node_ai_client -.->|"calls REST"| node_ai_entry
node_ai_entry -->|"mounts routes"| node_ai_routes
node_ai_entry -->|"mounts router"| node_study_assistant
node_ai_routes -.->|"document feature"| node_documents
node_ai_routes -.->|"Q&amp;A feature"| node_chatbot
node_ai_routes -.->|"summary feature"| node_summarization
node_ai_routes -.->|"transcription feature"| node_transcription
node_ai_routes -.->|"skills feature"| node_skills
node_ollama -.->|"serves models"| node_ai_entry

click node_legacy_app "https://github.com/pgangadharr3ddy/mini-project/blob/main/frontend/src/App.tsx"
click node_collab_app "https://github.com/pgangadharr3ddy/mini-project/blob/main/collabhub%20frontend/src/App.tsx"
click node_auth "https://github.com/pgangadharr3ddy/mini-project/blob/main/collabhub%20frontend/src/context/AuthContext.tsx"
click node_classroom_ui "https://github.com/pgangadharr3ddy/mini-project/tree/main/frontend/src/pages"
click node_announcements "https://github.com/pgangadharr3ddy/mini-project/blob/main/frontend/src/pages/Announcements/AnnouncementsPage.tsx"
click node_timetable "https://github.com/pgangadharr3ddy/mini-project/blob/main/frontend/src/pages/Timetable/TimetablePage.tsx"
click node_events "https://github.com/pgangadharr3ddy/mini-project/blob/main/frontend/src/pages/Events/EventsPage.tsx"
click node_resources "https://github.com/pgangadharr3ddy/mini-project/blob/main/frontend/src/pages/Resources/ResourcesPage.tsx"
click node_projects "https://github.com/pgangadharr3ddy/mini-project/blob/main/collabhub%20frontend/src/pages/ProjectDetailPage.tsx"
click node_admin "https://github.com/pgangadharr3ddy/mini-project/blob/main/frontend/src/pages/Admin/AdminPage.tsx"
click node_ai_client "https://github.com/pgangadharr3ddy/mini-project/blob/main/collabhub%20frontend/src/api/aiService.ts"
click node_ai_entry "https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/main.py"
click node_ai_routes "https://github.com/pgangadharr3ddy/mini-project/tree/main/ai-service/app/api"
click node_study_assistant "https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/study_assistant.py"
click node_documents "https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/services/document_service.py"
click node_chatbot "https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/services/chatbot_service.py"
click node_summarization "https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/services/summarization_service.py"
click node_transcription "https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/services/transcription_service.py"
click node_skills "https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/services/skill_service.py"
click node_embedding "https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/services/embedding_service.py"
click node_vector_store "https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/services/vector_store_service.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_legacy_app,node_collab_app,node_auth,node_ai_client,node_user toneBlue
class node_classroom_ui,node_announcements,node_timetable,node_events,node_resources,node_projects,node_admin toneAmber
class node_ai_entry,node_ai_routes,node_study_assistant,node_documents,node_chatbot,node_summarization,node_transcription,node_skills,node_embedding,node_vector_store toneMint
class node_api_service,node_ollama toneRose
```

## Components

### Web applications

- [Classroom app](https://github.com/pgangadharr3ddy/mini-project/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Collaboration app](https://github.com/pgangadharr3ddy/mini-project/blob/main/collabhub%20frontend/src/App.tsx): `collabhub frontend/src/App.tsx`
- [User identity](https://github.com/pgangadharr3ddy/mini-project/blob/main/collabhub%20frontend/src/context/AuthContext.tsx): `collabhub frontend/src/context/AuthContext.tsx`
- [AI API client](https://github.com/pgangadharr3ddy/mini-project/blob/main/collabhub%20frontend/src/api/aiService.ts): `collabhub frontend/src/api/aiService.ts`

### Classroom features

- [Classroom pages](https://github.com/pgangadharr3ddy/mini-project/tree/main/frontend/src/pages): `frontend/src/pages`
- [Announcements](https://github.com/pgangadharr3ddy/mini-project/blob/main/frontend/src/pages/Announcements/AnnouncementsPage.tsx): `frontend/src/pages/Announcements/AnnouncementsPage.tsx`
- [Timetable](https://github.com/pgangadharr3ddy/mini-project/blob/main/frontend/src/pages/Timetable/TimetablePage.tsx): `frontend/src/pages/Timetable/TimetablePage.tsx`
- [Events](https://github.com/pgangadharr3ddy/mini-project/blob/main/frontend/src/pages/Events/EventsPage.tsx): `frontend/src/pages/Events/EventsPage.tsx`
- [Learning resources](https://github.com/pgangadharr3ddy/mini-project/blob/main/frontend/src/pages/Resources/ResourcesPage.tsx): `frontend/src/pages/Resources/ResourcesPage.tsx`
- [Projects](https://github.com/pgangadharr3ddy/mini-project/blob/main/collabhub%20frontend/src/pages/ProjectDetailPage.tsx): `collabhub frontend/src/pages/ProjectDetailPage.tsx`
- [Administration](https://github.com/pgangadharr3ddy/mini-project/blob/main/frontend/src/pages/Admin/AdminPage.tsx): `frontend/src/pages/Admin/AdminPage.tsx`

### AI learning service

- [AI service entry](https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/main.py): `ai-service/app/main.py`
- [AI feature routes](https://github.com/pgangadharr3ddy/mini-project/tree/main/ai-service/app/api): `ai-service/app/api`
- [Study assistant](https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/study_assistant.py): `ai-service/study_assistant.py`
- [Document processing](https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/services/document_service.py): `ai-service/app/services/document_service.py`
- [Document Q&A](https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/services/chatbot_service.py): `ai-service/app/services/chatbot_service.py`
- [Summarization](https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/services/summarization_service.py): `ai-service/app/services/summarization_service.py`
- [Transcription](https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/services/transcription_service.py): `ai-service/app/services/transcription_service.py`
- [Skill extraction](https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/services/skill_service.py): `ai-service/app/services/skill_service.py`
- [Text embeddings](https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/services/embedding_service.py): `ai-service/app/services/embedding_service.py`
- [Vector storage](https://github.com/pgangadharr3ddy/mini-project/blob/main/ai-service/app/services/vector_store_service.py): `ai-service/app/services/vector_store_service.py`

### Service integration

- **Classroom API**
- **Ollama models**

### Other components

- **Classroom user**

## Connections

- Classroom user → Classroom app: uses (evidence: `README.md`)
- Classroom user → Collaboration app: uses (evidence: `README.md`)
- Classroom app → Classroom pages: routes to (evidence: `frontend/src/App.tsx`)
- Collaboration app → User identity: provides auth (evidence: `collabhub frontend/src/App.tsx`)
- Collaboration app → Projects: routes to (evidence: `collabhub frontend/src/App.tsx`)
- Classroom app → Timetable: routes to (evidence: `frontend/src/App.tsx`)
- Classroom app → Announcements: routes to (evidence: `frontend/src/App.tsx`)
- Classroom app → Events: routes to (evidence: `frontend/src/App.tsx`)
- Classroom app → Learning resources: routes to (evidence: `frontend/src/App.tsx`)
- Classroom app → Administration: routes to (evidence: `frontend/src/App.tsx`)
- Classroom user → Classroom pages: uses (evidence: `README.md`)
- Classroom pages → Classroom API: requests data (evidence: `README.md`)
- Classroom user → AI API client: requests AI (evidence: `README.md`)
- AI API client → AI service entry: calls REST (evidence: `README.md`)
- AI service entry → AI feature routes: mounts routes (evidence: `ai-service/app/main.py`)
- AI service entry → Study assistant: mounts router (evidence: `ai-service/app/main.py`)
- AI feature routes → Document processing: document feature (evidence: `ai-service/app/api/documents.py`)
- AI feature routes → Document Q&A: Q&A feature (evidence: `ai-service/app/api/chatbot.py`)
- AI feature routes → Summarization: summary feature
- AI feature routes → Transcription: transcription feature
- AI feature routes → Skill extraction: skills feature
- Ollama models → AI service entry: serves models (evidence: `README.md`)
