# bharathroyal918/gqt-student architecture

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

- Interactive diagram: https://gitdiagram.com/bharathroyal918/gqt-student
- Repository: https://github.com/bharathroyal918/gqt-student

## Overview

GQT Student Portal is a multi-role learning and coding-assessment platform. Students progress through courses and sequential modules, complete coding assignments and daily tasks, earn scores and rankings, and use projects, AI tutoring, placements, certificates, and notifications; Admin and TPO users manage and monitor institutional learning. The frontend provides role-specific workflows over Django REST APIs. Relationships are limited to those stated in the README or shown by the supplied source index and excerpts; several feature paths are documented but their runtime wiring was not sampled.

Main entry points: [`backend/apps/students/models.py`](https://github.com/bharathroyal918/gqt-student/blob/master/backend/apps/students/models.py) (Student profiles), [`backend/apps/scoring/services.py`](https://github.com/bharathroyal918/gqt-student/blob/master/backend/apps/scoring/services.py) (Scoring engine), [`frontend/src/api/client.ts`](https://github.com/bharathroyal918/gqt-student/blob/master/frontend/src/api/client.ts) (API client), [`backend/apps/courses`](https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/courses) (Courses and enrollment)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Role-based portal"]
  node_spa["React application<br/>[App.tsx]"]
  node_routes["Role routes<br/>[router.tsx]"]
  node_authstate["Auth state<br/>[authStore.ts]"]
  node_api["API client<br/>[client.ts]"]
  node_studentui["Student workflows"]
  node_adminui["Admin workflows"]
  node_tpoui["TPO workflows"]
end

subgraph group_identity["Identity and student records"]
  node_accounts["Accounts and roles"]
  node_studentdata[("Student profiles<br/>[models.py]")]
end

subgraph group_learning["Learning and assessment"]
  node_courses[("Courses and enrollment")]
  node_modules["Sequential modules"]
  node_assignments["Coding assignments"]
  node_execution["Code execution"]
  node_scoring["Scoring engine<br/>[services.py]"]
  node_tasks["Daily tasks"]
  node_projects["Capstone projects"]
  node_leaderboard["Leaderboard<br/>[services.py]"]
end

subgraph group_engagement["Support and engagement"]
  node_ai["AI tutor"]
  node_notifications["Notifications"]
  node_certificates["Certificates"]
  node_placements["Placement services"]
end

subgraph group_institution["Institutional insights"]
  node_analytics["Analytics<br/>[services.py]"]
  node_reports["Reports"]
  node_contact["Support inquiries"]
end

node_student(("Student"))
node_staff(("Admin / TPO"))

node_spa -->|"renders routes"| node_routes
node_routes -->|"checks auth"| node_authstate
node_student -.->|"uses"| node_studentui
node_staff -.->|"uses"| node_adminui
node_staff -.->|"uses"| node_tpoui
node_studentui -.->|"requests data"| node_api
node_adminui -.->|"requests data"| node_api
node_tpoui -.->|"requests data"| node_api
node_api -.->|"calls API"| node_accounts
node_accounts -->|"associates profile"| node_studentdata
node_studentdata -->|"enrolls in"| node_courses
node_modules -->|"checks course"| node_courses
node_assignments -.->|"requests execution"| node_execution
node_assignments -.->|"submits scores"| node_scoring
node_modules -->|"checks score records"| node_scoring
node_tasks -->|"awards task points"| node_scoring
node_projects -->|"awards project points"| node_scoring
node_scoring -->|"invalidates cache"| node_leaderboard
node_studentdata -->|"uses rankings"| node_leaderboard
node_ai -->|"loads student"| node_studentdata
node_notifications -->|"targets users"| node_studentdata
node_certificates -->|"sends alerts"| node_notifications
node_analytics -->|"aggregates course data"| node_courses
node_analytics -->|"aggregates student data"| node_studentdata

click node_spa "https://github.com/bharathroyal918/gqt-student/blob/master/frontend/src/app/App.tsx"
click node_routes "https://github.com/bharathroyal918/gqt-student/blob/master/frontend/src/app/router.tsx"
click node_authstate "https://github.com/bharathroyal918/gqt-student/blob/master/frontend/src/store/authStore.ts"
click node_api "https://github.com/bharathroyal918/gqt-student/blob/master/frontend/src/api/client.ts"
click node_studentui "https://github.com/bharathroyal918/gqt-student/tree/master/frontend/src/pages/student"
click node_adminui "https://github.com/bharathroyal918/gqt-student/tree/master/frontend/src/pages/admin"
click node_tpoui "https://github.com/bharathroyal918/gqt-student/tree/master/frontend/src/pages/tpo"
click node_accounts "https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/accounts"
click node_studentdata "https://github.com/bharathroyal918/gqt-student/blob/master/backend/apps/students/models.py"
click node_courses "https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/courses"
click node_modules "https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/modules"
click node_assignments "https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/assignments"
click node_execution "https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/assignments/execution"
click node_scoring "https://github.com/bharathroyal918/gqt-student/blob/master/backend/apps/scoring/services.py"
click node_tasks "https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/tasks"
click node_projects "https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/projects"
click node_leaderboard "https://github.com/bharathroyal918/gqt-student/blob/master/backend/apps/leaderboard/services.py"
click node_ai "https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/ai_assistant"
click node_notifications "https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/notifications"
click node_certificates "https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/certificates"
click node_placements "https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/placements"
click node_analytics "https://github.com/bharathroyal918/gqt-student/blob/master/backend/apps/analytics/services.py"
click node_reports "https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/reports"
click node_contact "https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/contact"

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_spa,node_routes,node_authstate,node_api,node_studentui,node_adminui,node_tpoui toneBlue
class node_accounts,node_studentdata toneAmber
class node_courses,node_modules,node_assignments,node_execution,node_scoring,node_tasks,node_projects,node_leaderboard toneMint
class node_ai,node_notifications,node_certificates,node_placements toneRose
class node_analytics,node_reports,node_contact,node_student,node_staff toneIndigo
```

## Components

### Role-based portal

- [React application](https://github.com/bharathroyal918/gqt-student/blob/master/frontend/src/app/App.tsx): `frontend/src/app/App.tsx`
- [Role routes](https://github.com/bharathroyal918/gqt-student/blob/master/frontend/src/app/router.tsx): `frontend/src/app/router.tsx`
- [Auth state](https://github.com/bharathroyal918/gqt-student/blob/master/frontend/src/store/authStore.ts): `frontend/src/store/authStore.ts`
- [API client](https://github.com/bharathroyal918/gqt-student/blob/master/frontend/src/api/client.ts): `frontend/src/api/client.ts`
- [Student workflows](https://github.com/bharathroyal918/gqt-student/tree/master/frontend/src/pages/student): `frontend/src/pages/student`
- [Admin workflows](https://github.com/bharathroyal918/gqt-student/tree/master/frontend/src/pages/admin): `frontend/src/pages/admin`
- [TPO workflows](https://github.com/bharathroyal918/gqt-student/tree/master/frontend/src/pages/tpo): `frontend/src/pages/tpo`

### Identity and student records

- [Accounts and roles](https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/accounts): `backend/apps/accounts`
- [Student profiles](https://github.com/bharathroyal918/gqt-student/blob/master/backend/apps/students/models.py): `backend/apps/students/models.py`

### Learning and assessment

- [Courses and enrollment](https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/courses): `backend/apps/courses`
- [Sequential modules](https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/modules): `backend/apps/modules`
- [Coding assignments](https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/assignments): `backend/apps/assignments`
- [Code execution](https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/assignments/execution): `backend/apps/assignments/execution`
- [Scoring engine](https://github.com/bharathroyal918/gqt-student/blob/master/backend/apps/scoring/services.py): `backend/apps/scoring/services.py`
- [Daily tasks](https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/tasks): `backend/apps/tasks`
- [Capstone projects](https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/projects): `backend/apps/projects`
- [Leaderboard](https://github.com/bharathroyal918/gqt-student/blob/master/backend/apps/leaderboard/services.py): `backend/apps/leaderboard/services.py`

### Support and engagement

- [AI tutor](https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/ai_assistant): `backend/apps/ai_assistant`
- [Notifications](https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/notifications): `backend/apps/notifications`
- [Certificates](https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/certificates): `backend/apps/certificates`
- [Placement services](https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/placements): `backend/apps/placements`

### Institutional insights

- [Analytics](https://github.com/bharathroyal918/gqt-student/blob/master/backend/apps/analytics/services.py): `backend/apps/analytics/services.py`
- [Reports](https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/reports): `backend/apps/reports`
- [Support inquiries](https://github.com/bharathroyal918/gqt-student/tree/master/backend/apps/contact): `backend/apps/contact`

### Other components

- **Student**
- **Admin / TPO**

## Connections

- React application → Role routes: renders routes (evidence: `frontend/src/app/App.tsx`)
- Role routes → Auth state: checks auth (evidence: `frontend/src/app/router.tsx`)
- Student → Student workflows: uses
- Admin / TPO → Admin workflows: uses
- Admin / TPO → TPO workflows: uses
- Student workflows → API client: requests data
- Admin workflows → API client: requests data
- TPO workflows → API client: requests data
- API client → Accounts and roles: calls API
- Accounts and roles → Student profiles: associates profile (evidence: `backend/apps/accounts/services.py`)
- Student profiles → Courses and enrollment: enrolls in (evidence: `backend/apps/courses/services.py`)
- Sequential modules → Courses and enrollment: checks course (evidence: `backend/apps/modules/services.py`)
- Coding assignments → Code execution: requests execution
- Coding assignments → Scoring engine: submits scores
- Sequential modules → Scoring engine: checks score records (evidence: `backend/apps/modules/services.py`)
- Daily tasks → Scoring engine: awards task points (evidence: `backend/apps/tasks/services.py`)
- Capstone projects → Scoring engine: awards project points (evidence: `backend/apps/projects/services.py`)
- Scoring engine → Leaderboard: invalidates cache (evidence: `backend/apps/scoring/services.py`)
- Student profiles → Leaderboard: uses rankings (evidence: `backend/apps/students/services.py`)
- AI tutor → Student profiles: loads student (evidence: `backend/apps/ai_assistant/services.py`)
- Notifications → Student profiles: targets users (evidence: `backend/apps/notifications/services.py`)
- Certificates → Notifications: sends alerts (evidence: `backend/apps/certificates/services.py`)
- Analytics → Courses and enrollment: aggregates course data (evidence: `backend/apps/analytics/services.py`)
- Analytics → Student profiles: aggregates student data (evidence: `backend/apps/analytics/services.py`)
