# rochakdh/getwheels architecture

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

- Interactive diagram: https://gitdiagram.com/rochakdh/getwheels
- Repository: https://github.com/rochakdh/getwheels

## Overview

This Django application supports vehicle rental: users browse available vehicles, submit rental requests, and renters review and approve or reject them. Renters can publish vehicles and manage listings; users also have profiles, authentication, and a contact/consultation form. A separate REST endpoint exposes filterable vehicle listings. The excerpts show URL dispatch, view-to-model/form references, API serialization, and SQLite configuration; unsampled view logic and template behavior are not expanded into unsupported flows.

Main entry points: [`rent/home/views.py`](https://github.com/rochakdh/getwheels/blob/master/rent/home/views.py) (Page views), [`rent/home/models.py`](https://github.com/rochakdh/getwheels/blob/master/rent/home/models.py) (Rental records), [`rent/home/api/views.py`](https://github.com/rochakdh/getwheels/blob/master/rent/home/api/views.py) (Listing API), [`rent/home/urls.py`](https://github.com/rochakdh/getwheels/blob/master/rent/home/urls.py) (Page routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_web_routes["Page routes<br/>[urls.py]"]
  node_web_views["Page views<br/>[views.py]"]
  node_templates["Page templates"]
  node_auth["User accounts"]
end

subgraph group_rental["Rental domain"]
  node_listing["Vehicle listings<br/>[views.py]"]
  node_publishing["Vehicle publishing<br/>[views.py]"]
  node_reservation["Rental requests<br/>[views.py]"]
  node_approval["Renter decisions<br/>[views.py]"]
  node_profiles["User profiles<br/>[views.py]"]
  node_consultation["Consultation form<br/>[forms.py]"]
end

subgraph group_api["Vehicle API"]
  node_api_routes["API routes<br/>[urls.py]"]
  node_api_view["Listing API<br/>[views.py]"]
  node_serializer["Vehicle serializer<br/>[serializers.py]"]
end

subgraph group_platform["Persistence and auth"]
  node_vehicle_data["Rental records<br/>[models.py]"]
  node_sqlite[("SQLite database<br/>[db.sqlite3]")]
  node_settings["Django settings<br/>[settings.py]"]
end

node_visitor(("Visitor"))
node_api_client(("API client"))

node_visitor -.->|"requests pages"| node_web_routes
node_web_routes -->|"dispatches"| node_web_views
node_web_views -->|"renders"| node_templates
node_web_views -->|"authenticates users"| node_auth
node_web_views -->|"handles listing pages"| node_listing
node_web_views -->|"handles publishing"| node_publishing
node_web_views -->|"handles requests"| node_reservation
node_web_views -->|"handles decisions"| node_approval
node_web_views -->|"handles profiles"| node_profiles
node_web_views -->|"uses form"| node_consultation
node_listing -->|"queries listings"| node_vehicle_data
node_publishing -->|"creates listings"| node_vehicle_data
node_reservation -->|"loads vehicle"| node_vehicle_data
node_approval -->|"updates requests"| node_vehicle_data
node_profiles -->|"queries records"| node_vehicle_data
node_consultation -->|"models consultation"| node_vehicle_data
node_api_client -.->|"requests listings"| node_api_routes
node_api_routes -->|"dispatches"| node_api_view
node_api_view -->|"serializes listings"| node_serializer
node_api_view -->|"queries listings"| node_vehicle_data
node_serializer -->|"serializes model"| node_vehicle_data
node_settings -->|"configures database"| node_sqlite
node_vehicle_data -.->|"persists records"| node_sqlite

click node_web_routes "https://github.com/rochakdh/getwheels/blob/master/rent/home/urls.py"
click node_web_views "https://github.com/rochakdh/getwheels/blob/master/rent/home/views.py"
click node_templates "https://github.com/rochakdh/getwheels/tree/master/rent/home/templates"
click node_listing "https://github.com/rochakdh/getwheels/blob/master/rent/home/views.py"
click node_publishing "https://github.com/rochakdh/getwheels/blob/master/rent/home/views.py"
click node_reservation "https://github.com/rochakdh/getwheels/blob/master/rent/home/views.py"
click node_approval "https://github.com/rochakdh/getwheels/blob/master/rent/home/views.py"
click node_profiles "https://github.com/rochakdh/getwheels/blob/master/rent/home/views.py"
click node_consultation "https://github.com/rochakdh/getwheels/blob/master/rent/home/forms.py"
click node_api_routes "https://github.com/rochakdh/getwheels/blob/master/rent/home/api/urls.py"
click node_api_view "https://github.com/rochakdh/getwheels/blob/master/rent/home/api/views.py"
click node_serializer "https://github.com/rochakdh/getwheels/blob/master/rent/home/api/serializers.py"
click node_vehicle_data "https://github.com/rochakdh/getwheels/blob/master/rent/home/models.py"
click node_sqlite "https://github.com/rochakdh/getwheels/blob/master/rent/db.sqlite3"
click node_settings "https://github.com/rochakdh/getwheels/blob/master/rent/rent/settings.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_web_routes,node_web_views,node_templates,node_auth,node_api_client toneBlue
class node_listing,node_publishing,node_reservation,node_approval,node_profiles,node_consultation toneAmber
class node_api_routes,node_api_view,node_serializer toneMint
class node_vehicle_data,node_sqlite,node_settings toneRose
class node_visitor toneIndigo
```

## Components

### Web experience

- [Page routes](https://github.com/rochakdh/getwheels/blob/master/rent/home/urls.py): `rent/home/urls.py`
- [Page views](https://github.com/rochakdh/getwheels/blob/master/rent/home/views.py): `rent/home/views.py`
- [Page templates](https://github.com/rochakdh/getwheels/tree/master/rent/home/templates): `rent/home/templates`
- **User accounts**

### Rental domain

- [Vehicle listings](https://github.com/rochakdh/getwheels/blob/master/rent/home/views.py): `rent/home/views.py`
- [Vehicle publishing](https://github.com/rochakdh/getwheels/blob/master/rent/home/views.py): `rent/home/views.py`
- [Rental requests](https://github.com/rochakdh/getwheels/blob/master/rent/home/views.py): `rent/home/views.py`
- [Renter decisions](https://github.com/rochakdh/getwheels/blob/master/rent/home/views.py): `rent/home/views.py`
- [User profiles](https://github.com/rochakdh/getwheels/blob/master/rent/home/views.py): `rent/home/views.py`
- [Consultation form](https://github.com/rochakdh/getwheels/blob/master/rent/home/forms.py): `rent/home/forms.py`

### Vehicle API

- [API routes](https://github.com/rochakdh/getwheels/blob/master/rent/home/api/urls.py): `rent/home/api/urls.py`
- [Listing API](https://github.com/rochakdh/getwheels/blob/master/rent/home/api/views.py): `rent/home/api/views.py`
- [Vehicle serializer](https://github.com/rochakdh/getwheels/blob/master/rent/home/api/serializers.py): `rent/home/api/serializers.py`

### Persistence and auth

- [Rental records](https://github.com/rochakdh/getwheels/blob/master/rent/home/models.py): `rent/home/models.py`
- [SQLite database](https://github.com/rochakdh/getwheels/blob/master/rent/db.sqlite3): `rent/db.sqlite3`
- [Django settings](https://github.com/rochakdh/getwheels/blob/master/rent/rent/settings.py): `rent/rent/settings.py`

### Other components

- **Visitor**
- **API client**

## Connections

- Visitor → Page routes: requests pages
- Page routes → Page views: dispatches (evidence: `rent/home/urls.py`)
- Page views → Page templates: renders (evidence: `rent/home/views.py`)
- Page views → User accounts: authenticates users (evidence: `rent/home/views.py`)
- Page views → Vehicle listings: handles listing pages (evidence: `rent/home/urls.py`)
- Page views → Vehicle publishing: handles publishing (evidence: `rent/home/urls.py`)
- Page views → Rental requests: handles requests (evidence: `rent/home/urls.py`)
- Page views → Renter decisions: handles decisions (evidence: `rent/home/urls.py`)
- Page views → User profiles: handles profiles (evidence: `rent/home/urls.py`)
- Page views → Consultation form: uses form (evidence: `rent/home/views.py`)
- Vehicle listings → Rental records: queries listings (evidence: `rent/home/views.py`)
- Vehicle publishing → Rental records: creates listings (evidence: `rent/home/views.py`)
- Rental requests → Rental records: loads vehicle (evidence: `rent/home/views.py`)
- Renter decisions → Rental records: updates requests (evidence: `rent/home/views.py`)
- User profiles → Rental records: queries records (evidence: `rent/home/views.py`)
- Consultation form → Rental records: models consultation (evidence: `rent/home/forms.py`)
- API client → API routes: requests listings
- API routes → Listing API: dispatches (evidence: `rent/home/api/urls.py`)
- Listing API → Vehicle serializer: serializes listings (evidence: `rent/home/api/views.py`)
- Listing API → Rental records: queries listings (evidence: `rent/home/api/views.py`)
- Vehicle serializer → Rental records: serializes model (evidence: `rent/home/api/serializers.py`)
- Django settings → SQLite database: configures database (evidence: `rent/rent/settings.py`)
- Rental records → SQLite database: persists records
