# rahul2615/studenttutor-platform architecture

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

## Overview

EduConnect is a Flask tutoring marketplace: students and tutors use the browser or REST API to discover and publish courses, enroll, learn, and engage; payments and subscriptions support course access and tutor earnings. Shared application models underpin these workflows, while role-based admin tools manage approvals and platform operations. The README documents AI, live sessions, internationalization, and PWA capabilities; some implementation details for these features were not sampled, so those branches are shown only where documented.

Main entry points: [`StudentTutor Platform/app/__init__.py`](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/__init__.py) (Web App Setup), [`StudentTutor Platform/app/models.py`](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/models.py) (Domain Models), [`StudentTutor Platform/app/services/payment_service.py`](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/services/payment_service.py) (Payment Service), [`StudentTutor Platform/app/api/__init__.py`](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/api/__init__.py) (REST API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User Experience"]
  node_web_app["Web App Setup<br/>[__init__.py]"]
  node_auth["Accounts and Roles<br/>[auth.py]"]
  node_api["REST API<br/>[__init__.py]"]
  node_api_auth["API Token Auth<br/>[token_auth.py]"]
  node_pwa["Offline PWA<br/>[sw.js]"]
  node_translations["Translations"]
end

subgraph group_learning["Learning Marketplace"]
  node_course_ops["Course Operations"]
  node_student_ops["Student Learning"]
  node_tutor_routes["Tutor Workspace<br/>[tutor.py]"]
  node_admin["Admin Operations<br/>[admin.py]"]
end

subgraph group_engagement["Engagement and AI"]
  node_engagement["Learning Engagement<br/>[engagement.py]"]
  node_gamification["Points and Badges"]
  node_ai["AI Features<br/>[ai.py]"]
  node_ai_service["AI Service<br/>[ai_service.py]"]
  node_live_meeting["Live Meeting Provider"]
end

subgraph group_commerce["Payments"]
  node_payments["Payment Routes<br/>[payment.py]"]
  node_payment_service["Payment Service<br/>[payment_service.py]"]
  node_earnings["Tutor Earnings"]
end

subgraph group_platform["Platform Services"]
  node_models["Domain Models<br/>[models.py]"]
  node_database[("SQL Database")]
end

node_browser(("Browser Users"))
node_api_clients(("API Clients"))
node_stripe["Stripe"]

node_browser -->|"uses"| node_web_app
node_api_clients -->|"calls"| node_api
node_web_app -->|"registers"| node_auth
node_web_app -->|"registers"| node_tutor_routes
node_web_app -->|"registers"| node_admin
node_web_app -->|"registers"| node_engagement
node_web_app -->|"registers"| node_ai
node_web_app -->|"registers"| node_payments
node_api -->|"uses"| node_api_auth
node_api -->|"queries"| node_models
node_tutor_routes -->|"delegates to"| node_course_ops
node_tutor_routes -->|"delegates to"| node_earnings
node_student_ops -->|"awards points"| node_gamification
node_engagement -->|"uses"| node_gamification
node_ai -->|"calls"| node_ai_service
node_ai_service -.->|"uses"| node_models
node_engagement -.->|"schedules"| node_live_meeting
node_payments -->|"calls"| node_payment_service
node_payment_service -->|"integrates"| node_stripe
node_earnings -->|"gets balance"| node_payment_service
node_admin -->|"manages"| node_models
node_course_ops -->|"reads and writes"| node_models
node_payment_service -->|"updates"| node_models
node_models -->|"persists"| node_database
node_web_app -->|"localizes"| node_translations
node_browser -->|"installs"| node_pwa

click node_web_app "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/__init__.py"
click node_auth "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/routes/auth.py"
click node_api "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/api/__init__.py"
click node_api_auth "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/api/token_auth.py"
click node_course_ops "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/controllers/course_controller.py"
click node_student_ops "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/controllers/student_controller.py"
click node_tutor_routes "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/routes/tutor.py"
click node_admin "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/routes/admin.py"
click node_engagement "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/routes/engagement.py"
click node_gamification "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/services/gamification_service.py"
click node_ai "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/routes/ai.py"
click node_ai_service "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/services/ai_service.py"
click node_payments "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/routes/payment.py"
click node_payment_service "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/services/payment_service.py"
click node_earnings "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/controllers/earnings_controller.py"
click node_models "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/models.py"
click node_pwa "https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/static/sw.js"
click node_translations "https://github.com/rahul2615/studenttutor-platform/tree/main/StudentTutor%20Platform/app/translations"

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_web_app,node_auth,node_api,node_api_auth,node_pwa,node_translations,node_browser,node_api_clients toneBlue
class node_course_ops,node_student_ops,node_tutor_routes,node_admin toneAmber
class node_engagement,node_gamification,node_ai,node_ai_service,node_live_meeting toneMint
class node_payments,node_payment_service,node_earnings toneRose
class node_models,node_database,node_stripe toneIndigo
```

## Components

### User Experience

- [Web App Setup](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/__init__.py): `StudentTutor Platform/app/__init__.py`
- [Accounts and Roles](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/routes/auth.py): `StudentTutor Platform/app/routes/auth.py`
- [REST API](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/api/__init__.py): `StudentTutor Platform/app/api/__init__.py`
- [API Token Auth](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/api/token_auth.py): `StudentTutor Platform/app/api/token_auth.py`
- [Offline PWA](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/static/sw.js): `StudentTutor Platform/app/static/sw.js`
- [Translations](https://github.com/rahul2615/studenttutor-platform/tree/main/StudentTutor%20Platform/app/translations): `StudentTutor Platform/app/translations`

### Learning Marketplace

- [Course Operations](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/controllers/course_controller.py): `StudentTutor Platform/app/controllers/course_controller.py`
- [Student Learning](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/controllers/student_controller.py): `StudentTutor Platform/app/controllers/student_controller.py`
- [Tutor Workspace](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/routes/tutor.py): `StudentTutor Platform/app/routes/tutor.py`
- [Admin Operations](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/routes/admin.py): `StudentTutor Platform/app/routes/admin.py`

### Engagement and AI

- [Learning Engagement](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/routes/engagement.py): `StudentTutor Platform/app/routes/engagement.py`
- [Points and Badges](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/services/gamification_service.py): `StudentTutor Platform/app/services/gamification_service.py`
- [AI Features](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/routes/ai.py): `StudentTutor Platform/app/routes/ai.py`
- [AI Service](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/services/ai_service.py): `StudentTutor Platform/app/services/ai_service.py`
- **Live Meeting Provider**

### Payments

- [Payment Routes](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/routes/payment.py): `StudentTutor Platform/app/routes/payment.py`
- [Payment Service](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/services/payment_service.py): `StudentTutor Platform/app/services/payment_service.py`
- [Tutor Earnings](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/controllers/earnings_controller.py): `StudentTutor Platform/app/controllers/earnings_controller.py`

### Platform Services

- [Domain Models](https://github.com/rahul2615/studenttutor-platform/blob/main/StudentTutor%20Platform/app/models.py): `StudentTutor Platform/app/models.py`
- **SQL Database**

### Other components

- **Browser Users**
- **API Clients**
- **Stripe**

## Connections

- Browser Users → Web App Setup: uses (evidence: `README.md`)
- API Clients → REST API: calls (evidence: `README.md`)
- Web App Setup → Accounts and Roles: registers (evidence: `StudentTutor Platform/app/__init__.py`)
- Web App Setup → Tutor Workspace: registers (evidence: `StudentTutor Platform/app/__init__.py`)
- Web App Setup → Admin Operations: registers (evidence: `StudentTutor Platform/app/__init__.py`)
- Web App Setup → Learning Engagement: registers (evidence: `StudentTutor Platform/app/__init__.py`)
- Web App Setup → AI Features: registers (evidence: `StudentTutor Platform/app/__init__.py`)
- Web App Setup → Payment Routes: registers (evidence: `StudentTutor Platform/app/__init__.py`)
- REST API → API Token Auth: uses
- REST API → Domain Models: queries
- Tutor Workspace → Course Operations: delegates to (evidence: `StudentTutor Platform/app/routes/tutor.py`)
- Tutor Workspace → Tutor Earnings: delegates to (evidence: `StudentTutor Platform/app/routes/tutor.py`)
- Student Learning → Points and Badges: awards points (evidence: `StudentTutor Platform/app/controllers/student_controller.py`)
- Learning Engagement → Points and Badges: uses (evidence: `StudentTutor Platform/app/routes/engagement.py`)
- AI Features → AI Service: calls (evidence: `StudentTutor Platform/app/routes/ai.py`)
- AI Service → Domain Models: uses
- Learning Engagement → Live Meeting Provider: schedules (evidence: `README.md`)
- Payment Routes → Payment Service: calls (evidence: `StudentTutor Platform/app/routes/payment.py`)
- Payment Service → Stripe: integrates (evidence: `README.md`)
- Tutor Earnings → Payment Service: gets balance (evidence: `StudentTutor Platform/app/controllers/earnings_controller.py`)
- Admin Operations → Domain Models: manages (evidence: `StudentTutor Platform/app/routes/admin.py`)
- Course Operations → Domain Models: reads and writes (evidence: `StudentTutor Platform/app/controllers/course_controller.py`)
- Payment Service → Domain Models: updates (evidence: `StudentTutor Platform/app/services/payment_service.py`)
- Domain Models → SQL Database: persists (evidence: `README.md`)
- Web App Setup → Translations: localizes (evidence: `README.md`)
- Browser Users → Offline PWA: installs (evidence: `README.md`)
