# rupamsana73/tutorsetu_v2 architecture

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

- Interactive diagram: https://gitdiagram.com/rupamsana73/tutorsetu_v2
- Repository: https://github.com/rupamsana73/tutorsetu_v2

## Overview

TutorSetu is a Django tutor marketplace. Students and parents discover tutors through filters and scored matching, then save tutors, send enquiries or demo requests, and use messaging; accepted enquiries enable reviews. Tutors onboard, publish profiles, manage availability, and respond to requests. The graph includes the documented API and admin capabilities. Source excerpts establish matching, review, notification, and account-profile behavior; some feature links rely on README statements or SOURCE INDEX references because their view implementations were not excerpted.

Main entry points: [`marketplace/views.py`](https://github.com/rupamsana73/tutorsetu_v2/blob/main/marketplace/views.py) (Marketplace Actions), [`tutors/models.py`](https://github.com/rupamsana73/tutorsetu_v2/blob/main/tutors/models.py) (Tutor Profiles), [`accounts/services.py`](https://github.com/rupamsana73/tutorsetu_v2/blob/main/accounts/services.py) (Registration Services), [`reviews/services.py`](https://github.com/rupamsana73/tutorsetu_v2/blob/main/reviews/services.py) (Review Rules & Ratings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_accounts["Accounts &amp; Profiles"]
  node_auth[("Accounts &amp; RBAC<br/>[models.py]")]
  node_registration["Registration Services<br/>[services.py]"]
  node_student_profiles[("Student Profiles<br/>[models.py]")]
  node_parent_profiles[("Parent Profiles<br/>[models.py]")]
end

subgraph group_discovery["Tutor Discovery"]
  node_tutor_profiles[("Tutor Profiles<br/>[models.py]")]
  node_locations[("Locations<br/>[models.py]")]
  node_matching["Search &amp; Matching<br/>[services.py]"]
end

subgraph group_engagement["Marketplace &amp; Engagement"]
  node_marketplace[("Enquiries &amp; Requests<br/>[models.py]")]
  node_marketplace_views["Marketplace Actions<br/>[views.py]"]
  node_messaging[("Messaging<br/>[models.py]")]
  node_messaging_services["Messaging Services<br/>[services.py]"]
  node_notifications[("Notifications<br/>[models.py]")]
  node_notification_service["Notification Service<br/>[services.py]"]
end

subgraph group_trust["Trust &amp; Safety"]
  node_reviews[("Reviews<br/>[models.py]")]
  node_review_services["Review Rules &amp; Ratings<br/>[services.py]"]
  node_verification[("Tutor Verification<br/>[models.py]")]
end

subgraph group_platform["Platform Operations"]
  node_api["REST API"]
  node_admin_ops["Admin Dashboard<br/>[manage_views.py]"]
  node_audit_settings[("Audit &amp; Settings<br/>[models.py]")]
  node_rate_limits["Rate Limiting<br/>[ratelimits.py]"]
end

node_students_parents(("Students &amp; Parents"))
node_tutors(("Tutors"))
node_admin(("Platform Admin"))

node_students_parents -->|"registers"| node_registration
node_registration -->|"creates account"| node_auth
node_registration -->|"creates profile"| node_student_profiles
node_registration -->|"creates profile"| node_parent_profiles
node_registration -->|"creates profile"| node_tutor_profiles
node_tutors -->|"onboards"| node_tutor_profiles
node_tutor_profiles -->|"references area"| node_locations
node_students_parents -->|"searches tutors"| node_matching
node_matching -->|"scores profiles"| node_tutor_profiles
node_matching -->|"checks distance"| node_locations
node_students_parents -->|"sends enquiry"| node_marketplace_views
node_marketplace_views -->|"creates enquiry"| node_marketplace
node_tutors -->|"responds to requests"| node_marketplace_views
node_marketplace_views -->|"notifies users"| node_notification_service
node_marketplace_views -->|"uses messaging"| node_messaging_services
node_messaging_services -->|"stores messages"| node_messaging
node_students_parents -->|"writes review"| node_review_services
node_review_services -->|"checks accepted enquiry"| node_marketplace
node_review_services -->|"creates review"| node_reviews
node_review_services -->|"updates rating"| node_tutor_profiles
node_review_services -->|"sends review alert"| node_notification_service
node_notification_service -->|"creates notification"| node_notifications
node_tutors -->|"submits documents"| node_verification
node_admin -->|"reviews queue"| node_verification
node_admin -->|"manages platform"| node_admin_ops
node_admin_ops -->|"reads and writes"| node_audit_settings
node_admin_ops -->|"broadcasts alerts"| node_notification_service
node_students_parents -->|"uses API"| node_api
node_api -->|"accesses marketplace"| node_marketplace
node_api -->|"accesses profiles"| node_tutor_profiles
node_api -->|"sends notifications"| node_notification_service
node_marketplace_views -->|"applies limits"| node_rate_limits
node_api -->|"throttles requests"| node_rate_limits

click node_auth "https://github.com/rupamsana73/tutorsetu_v2/blob/main/accounts/models.py"
click node_registration "https://github.com/rupamsana73/tutorsetu_v2/blob/main/accounts/services.py"
click node_student_profiles "https://github.com/rupamsana73/tutorsetu_v2/blob/main/students/models.py"
click node_parent_profiles "https://github.com/rupamsana73/tutorsetu_v2/blob/main/parents/models.py"
click node_tutor_profiles "https://github.com/rupamsana73/tutorsetu_v2/blob/main/tutors/models.py"
click node_locations "https://github.com/rupamsana73/tutorsetu_v2/blob/main/locations/models.py"
click node_matching "https://github.com/rupamsana73/tutorsetu_v2/blob/main/tutors/services.py"
click node_marketplace "https://github.com/rupamsana73/tutorsetu_v2/blob/main/marketplace/models.py"
click node_marketplace_views "https://github.com/rupamsana73/tutorsetu_v2/blob/main/marketplace/views.py"
click node_messaging "https://github.com/rupamsana73/tutorsetu_v2/blob/main/messaging/models.py"
click node_messaging_services "https://github.com/rupamsana73/tutorsetu_v2/blob/main/messaging/services.py"
click node_reviews "https://github.com/rupamsana73/tutorsetu_v2/blob/main/reviews/models.py"
click node_review_services "https://github.com/rupamsana73/tutorsetu_v2/blob/main/reviews/services.py"
click node_verification "https://github.com/rupamsana73/tutorsetu_v2/blob/main/verification/models.py"
click node_notifications "https://github.com/rupamsana73/tutorsetu_v2/blob/main/notifications/models.py"
click node_notification_service "https://github.com/rupamsana73/tutorsetu_v2/blob/main/notifications/services.py"
click node_api "https://github.com/rupamsana73/tutorsetu_v2/tree/main/api"
click node_admin_ops "https://github.com/rupamsana73/tutorsetu_v2/blob/main/core/manage_views.py"
click node_audit_settings "https://github.com/rupamsana73/tutorsetu_v2/blob/main/core/models.py"
click node_rate_limits "https://github.com/rupamsana73/tutorsetu_v2/blob/main/core/ratelimits.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_auth,node_registration,node_student_profiles,node_parent_profiles toneBlue
class node_tutor_profiles,node_locations,node_matching toneAmber
class node_marketplace,node_marketplace_views,node_messaging,node_messaging_services,node_notifications,node_notification_service toneMint
class node_reviews,node_review_services,node_verification toneRose
class node_api,node_admin_ops,node_audit_settings,node_rate_limits,node_students_parents,node_tutors,node_admin toneIndigo
```

## Components

### Accounts & Profiles

- [Accounts & RBAC](https://github.com/rupamsana73/tutorsetu_v2/blob/main/accounts/models.py): `accounts/models.py`
- [Registration Services](https://github.com/rupamsana73/tutorsetu_v2/blob/main/accounts/services.py): `accounts/services.py`
- [Student Profiles](https://github.com/rupamsana73/tutorsetu_v2/blob/main/students/models.py): `students/models.py`
- [Parent Profiles](https://github.com/rupamsana73/tutorsetu_v2/blob/main/parents/models.py): `parents/models.py`

### Tutor Discovery

- [Tutor Profiles](https://github.com/rupamsana73/tutorsetu_v2/blob/main/tutors/models.py): `tutors/models.py`
- [Locations](https://github.com/rupamsana73/tutorsetu_v2/blob/main/locations/models.py): `locations/models.py`
- [Search & Matching](https://github.com/rupamsana73/tutorsetu_v2/blob/main/tutors/services.py): `tutors/services.py`

### Marketplace & Engagement

- [Enquiries & Requests](https://github.com/rupamsana73/tutorsetu_v2/blob/main/marketplace/models.py): `marketplace/models.py`
- [Marketplace Actions](https://github.com/rupamsana73/tutorsetu_v2/blob/main/marketplace/views.py): `marketplace/views.py`
- [Messaging](https://github.com/rupamsana73/tutorsetu_v2/blob/main/messaging/models.py): `messaging/models.py`
- [Messaging Services](https://github.com/rupamsana73/tutorsetu_v2/blob/main/messaging/services.py): `messaging/services.py`
- [Notifications](https://github.com/rupamsana73/tutorsetu_v2/blob/main/notifications/models.py): `notifications/models.py`
- [Notification Service](https://github.com/rupamsana73/tutorsetu_v2/blob/main/notifications/services.py): `notifications/services.py`

### Trust & Safety

- [Reviews](https://github.com/rupamsana73/tutorsetu_v2/blob/main/reviews/models.py): `reviews/models.py`
- [Review Rules & Ratings](https://github.com/rupamsana73/tutorsetu_v2/blob/main/reviews/services.py): `reviews/services.py`
- [Tutor Verification](https://github.com/rupamsana73/tutorsetu_v2/blob/main/verification/models.py): `verification/models.py`

### Platform Operations

- [REST API](https://github.com/rupamsana73/tutorsetu_v2/tree/main/api): `api`
- [Admin Dashboard](https://github.com/rupamsana73/tutorsetu_v2/blob/main/core/manage_views.py): `core/manage_views.py`
- [Audit & Settings](https://github.com/rupamsana73/tutorsetu_v2/blob/main/core/models.py): `core/models.py`
- [Rate Limiting](https://github.com/rupamsana73/tutorsetu_v2/blob/main/core/ratelimits.py): `core/ratelimits.py`

### Other components

- **Students & Parents**
- **Tutors**
- **Platform Admin**

## Connections

- Students & Parents → Registration Services: registers
- Registration Services → Accounts & RBAC: creates account (evidence: `accounts/services.py`)
- Registration Services → Student Profiles: creates profile (evidence: `accounts/services.py`)
- Registration Services → Parent Profiles: creates profile (evidence: `accounts/services.py`)
- Registration Services → Tutor Profiles: creates profile (evidence: `accounts/services.py`)
- Tutors → Tutor Profiles: onboards
- Tutor Profiles → Locations: references area (evidence: `tutors/models.py`)
- Students & Parents → Search & Matching: searches tutors
- Search & Matching → Tutor Profiles: scores profiles (evidence: `tutors/services.py`)
- Search & Matching → Locations: checks distance (evidence: `tutors/services.py`)
- Students & Parents → Marketplace Actions: sends enquiry
- Marketplace Actions → Enquiries & Requests: creates enquiry (evidence: `marketplace/views.py`)
- Tutors → Marketplace Actions: responds to requests
- Marketplace Actions → Notification Service: notifies users (evidence: `marketplace/views.py`)
- Marketplace Actions → Messaging Services: uses messaging (evidence: `marketplace/views.py`)
- Messaging Services → Messaging: stores messages (evidence: `messaging/services.py`)
- Students & Parents → Review Rules & Ratings: writes review
- Review Rules & Ratings → Enquiries & Requests: checks accepted enquiry (evidence: `reviews/services.py`)
- Review Rules & Ratings → Reviews: creates review (evidence: `reviews/services.py`)
- Review Rules & Ratings → Tutor Profiles: updates rating (evidence: `reviews/services.py`)
- Review Rules & Ratings → Notification Service: sends review alert (evidence: `reviews/services.py`)
- Notification Service → Notifications: creates notification (evidence: `notifications/services.py`)
- Tutors → Tutor Verification: submits documents
- Platform Admin → Tutor Verification: reviews queue
- Platform Admin → Admin Dashboard: manages platform
- Admin Dashboard → Audit & Settings: reads and writes (evidence: `core/manage_views.py`)
- Admin Dashboard → Notification Service: broadcasts alerts (evidence: `core/manage_views.py`)
- Students & Parents → REST API: uses API
- REST API → Enquiries & Requests: accesses marketplace (evidence: `api/views.py`)
- REST API → Tutor Profiles: accesses profiles (evidence: `api/views.py`)
- REST API → Notification Service: sends notifications (evidence: `api/views.py`)
- Marketplace Actions → Rate Limiting: applies limits (evidence: `marketplace/views.py`)
- REST API → Rate Limiting: throttles requests
