# nokwanda680/tech-team architecture

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

- Interactive diagram: https://gitdiagram.com/nokwanda680/tech-team
- Repository: https://github.com/nokwanda680/tech-team

## Overview

Find My Vibe is a student-accommodation marketplace: students discover and save listings, contact landlords, and review properties; landlords manage listings and enquiries; administrators moderate the service. Static browser pages use a Django REST API backed by account and marketplace models. The graph preserves the documented user workflows and moderation capabilities, while some unsampled frontend/API details are represented only at the documented integration level; no external payment or messaging service is documented.

Main entry points: [`backend/findmyvibe_backend/findmyvibe/views.py`](https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/findmyvibe/views.py) (Marketplace API), [`front-end/listings/listings.js`](https://github.com/nokwanda680/tech-team/blob/main/front-end/listings/listings.js) (Listing browser), [`backend/findmyvibe_backend/findmyvibe_backend/views.py`](https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/findmyvibe_backend/views.py) (Role dashboard redirect), [`front-end/home page/index.js`](https://github.com/nokwanda680/tech-team/blob/main/front-end/home%20page/index.js) (Home and search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Browser experience"]
  node_home["Home and search<br/>[index.js]"]
  node_browse["Listing browser<br/>[listings.js]"]
  node_property_detail["Property details<br/>[property_detail.js]"]
  node_student_dashboard["Student workspace"]
  node_landlord_dashboard["Landlord workspace"]
  node_admin_dashboard["Admin workspace<br/>[admin_dashboard.js]"]
  node_account_ui["Sign-in and registration<br/>[login.js]"]
  node_moderation_ui["Admin moderation<br/>[admin_disputes.js]"]
end

subgraph group_accounts["Accounts and access"]
  node_account_api["Account API<br/>[views.py]"]
  node_account_data[("Users and profiles<br/>[models.py]")]
  node_account_serializers["Account serializers<br/>[serializers.py]"]
end

subgraph group_marketplace["Accommodation marketplace"]
  node_market_api["Marketplace API<br/>[views.py]"]
  node_market_serializers["Marketplace serializers<br/>[serializers.py]"]
  node_market_data[("Listings and activity<br/>[models.py]")]
  node_access_rules["Role permissions<br/>[permissions.py]"]
end

subgraph group_operations["Platform operations"]
  node_dashboard_router["Role dashboard redirect<br/>[views.py]"]
  node_demo_seed["Demo data seeder<br/>[seed_demo_data.py]"]
  node_database[("SQLite database")]
end

node_students(("Students"))
node_landlords(("Landlords"))
node_admins(("Administrators"))

node_students -->|"searches"| node_home
node_home -->|"routes search"| node_browse
node_students -.->|"browses"| node_browse
node_browse -.->|"opens listing"| node_property_detail
node_students -.->|"manages activity"| node_student_dashboard
node_landlords -.->|"manages properties"| node_landlord_dashboard
node_admins -.->|"reviews platform"| node_admin_dashboard
node_admins -.->|"reviews reports"| node_moderation_ui
node_account_ui -.->|"authenticates"| node_account_api
node_home -->|"fetches listings"| node_market_api
node_browse -.->|"requests listings"| node_market_api
node_property_detail -.->|"requests property data"| node_market_api
node_student_dashboard -.->|"manages favourites"| node_market_api
node_landlord_dashboard -.->|"manages enquiries"| node_market_api
node_admin_dashboard -.->|"reviews listings"| node_market_api
node_moderation_ui -.->|"reviews reports"| node_market_api
node_account_api -->|"reads and writes"| node_account_data
node_account_api -->|"serializes users"| node_account_serializers
node_market_api -->|"reads and writes"| node_market_data
node_market_api -->|"serializes resources"| node_market_serializers
node_market_api -->|"checks permissions"| node_access_rules
node_dashboard_router -->|"redirects students"| node_student_dashboard
node_dashboard_router -->|"redirects landlords"| node_landlord_dashboard
node_dashboard_router -->|"redirects admins"| node_admin_dashboard
node_demo_seed -->|"creates accounts"| node_account_data
node_demo_seed -->|"creates listings"| node_market_data
node_account_data -.->|"persists"| node_database
node_market_data -.->|"persists"| node_database

click node_home "https://github.com/nokwanda680/tech-team/blob/main/front-end/home%20page/index.js"
click node_browse "https://github.com/nokwanda680/tech-team/blob/main/front-end/listings/listings.js"
click node_property_detail "https://github.com/nokwanda680/tech-team/blob/main/front-end/listings/property_detail.js"
click node_student_dashboard "https://github.com/nokwanda680/tech-team/blob/main/front-end/dashboards/student%20dashboard/student_dashboard.js"
click node_landlord_dashboard "https://github.com/nokwanda680/tech-team/blob/main/front-end/dashboards/landlord%20dashboard/landlord_dashboard.js"
click node_admin_dashboard "https://github.com/nokwanda680/tech-team/blob/main/front-end/dashboards/admin%20dashboard/admin_dashboard.js"
click node_account_ui "https://github.com/nokwanda680/tech-team/blob/main/front-end/login/login.js"
click node_account_api "https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/accounts/views.py"
click node_account_data "https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/accounts/models.py"
click node_account_serializers "https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/accounts/serializers.py"
click node_market_api "https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/findmyvibe/views.py"
click node_market_serializers "https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/findmyvibe/serializers.py"
click node_market_data "https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/findmyvibe/models.py"
click node_access_rules "https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/findmyvibe/permissions.py"
click node_moderation_ui "https://github.com/nokwanda680/tech-team/blob/main/front-end/dashboards/admin%20dashboard/admin_disputes.js"
click node_dashboard_router "https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/findmyvibe_backend/views.py"
click node_demo_seed "https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/findmyvibe/management/commands/seed_demo_data.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_home,node_browse,node_property_detail,node_student_dashboard,node_landlord_dashboard,node_admin_dashboard,node_account_ui,node_moderation_ui toneBlue
class node_account_api,node_account_data,node_account_serializers toneAmber
class node_market_api,node_market_serializers,node_market_data,node_access_rules toneMint
class node_dashboard_router,node_demo_seed,node_database toneRose
class node_students,node_landlords,node_admins toneIndigo
```

## Components

### Browser experience

- [Home and search](https://github.com/nokwanda680/tech-team/blob/main/front-end/home%20page/index.js): `front-end/home page/index.js`
- [Listing browser](https://github.com/nokwanda680/tech-team/blob/main/front-end/listings/listings.js): `front-end/listings/listings.js`
- [Property details](https://github.com/nokwanda680/tech-team/blob/main/front-end/listings/property_detail.js): `front-end/listings/property_detail.js`
- [Student workspace](https://github.com/nokwanda680/tech-team/blob/main/front-end/dashboards/student%20dashboard/student_dashboard.js): `front-end/dashboards/student dashboard/student_dashboard.js`
- [Landlord workspace](https://github.com/nokwanda680/tech-team/blob/main/front-end/dashboards/landlord%20dashboard/landlord_dashboard.js): `front-end/dashboards/landlord dashboard/landlord_dashboard.js`
- [Admin workspace](https://github.com/nokwanda680/tech-team/blob/main/front-end/dashboards/admin%20dashboard/admin_dashboard.js): `front-end/dashboards/admin dashboard/admin_dashboard.js`
- [Sign-in and registration](https://github.com/nokwanda680/tech-team/blob/main/front-end/login/login.js): `front-end/login/login.js`
- [Admin moderation](https://github.com/nokwanda680/tech-team/blob/main/front-end/dashboards/admin%20dashboard/admin_disputes.js): `front-end/dashboards/admin dashboard/admin_disputes.js`

### Accounts and access

- [Account API](https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/accounts/views.py): `backend/findmyvibe_backend/accounts/views.py`
- [Users and profiles](https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/accounts/models.py): `backend/findmyvibe_backend/accounts/models.py`
- [Account serializers](https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/accounts/serializers.py): `backend/findmyvibe_backend/accounts/serializers.py`

### Accommodation marketplace

- [Marketplace API](https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/findmyvibe/views.py): `backend/findmyvibe_backend/findmyvibe/views.py`
- [Marketplace serializers](https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/findmyvibe/serializers.py): `backend/findmyvibe_backend/findmyvibe/serializers.py`
- [Listings and activity](https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/findmyvibe/models.py): `backend/findmyvibe_backend/findmyvibe/models.py`
- [Role permissions](https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/findmyvibe/permissions.py): `backend/findmyvibe_backend/findmyvibe/permissions.py`

### Platform operations

- [Role dashboard redirect](https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/findmyvibe_backend/views.py): `backend/findmyvibe_backend/findmyvibe_backend/views.py`
- [Demo data seeder](https://github.com/nokwanda680/tech-team/blob/main/backend/findmyvibe_backend/findmyvibe/management/commands/seed_demo_data.py): `backend/findmyvibe_backend/findmyvibe/management/commands/seed_demo_data.py`
- **SQLite database**

### Other components

- **Students**
- **Landlords**
- **Administrators**

## Connections

- Students → Home and search: searches (evidence: `front-end/home page/index.js`)
- Home and search → Listing browser: routes search (evidence: `front-end/home page/index.js`)
- Students → Listing browser: browses
- Listing browser → Property details: opens listing
- Students → Student workspace: manages activity
- Landlords → Landlord workspace: manages properties
- Administrators → Admin workspace: reviews platform
- Administrators → Admin moderation: reviews reports
- Sign-in and registration → Account API: authenticates
- Home and search → Marketplace API: fetches listings (evidence: `front-end/home page/index.js`)
- Listing browser → Marketplace API: requests listings
- Property details → Marketplace API: requests property data
- Student workspace → Marketplace API: manages favourites
- Landlord workspace → Marketplace API: manages enquiries
- Admin workspace → Marketplace API: reviews listings
- Admin moderation → Marketplace API: reviews reports
- Account API → Users and profiles: reads and writes (evidence: `backend/findmyvibe_backend/accounts/views.py`)
- Account API → Account serializers: serializes users (evidence: `backend/findmyvibe_backend/accounts/views.py`)
- Marketplace API → Listings and activity: reads and writes (evidence: `backend/findmyvibe_backend/findmyvibe/views.py`)
- Marketplace API → Marketplace serializers: serializes resources (evidence: `backend/findmyvibe_backend/findmyvibe/views.py`)
- Marketplace API → Role permissions: checks permissions (evidence: `backend/findmyvibe_backend/findmyvibe/views.py`)
- Role dashboard redirect → Student workspace: redirects students (evidence: `backend/findmyvibe_backend/findmyvibe_backend/views.py`)
- Role dashboard redirect → Landlord workspace: redirects landlords (evidence: `backend/findmyvibe_backend/findmyvibe_backend/views.py`)
- Role dashboard redirect → Admin workspace: redirects admins (evidence: `backend/findmyvibe_backend/findmyvibe_backend/views.py`)
- Demo data seeder → Users and profiles: creates accounts (evidence: `backend/findmyvibe_backend/findmyvibe/management/commands/seed_demo_data.py`)
- Demo data seeder → Listings and activity: creates listings (evidence: `backend/findmyvibe_backend/findmyvibe/management/commands/seed_demo_data.py`)
- Users and profiles → SQLite database: persists
- Listings and activity → SQLite database: persists
