# crowq87/autohub architecture

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

- Interactive diagram: https://gitdiagram.com/crowq87/autohub
- Repository: https://github.com/crowq87/autohub

## Overview

AutoHub is a Django vehicle marketplace for buying, selling, and renting vehicles. The principal workflow is account creation and email verification, seller identity review, vehicle listing submission and admin approval, then browsing listings and contacting owners through chat; users can also manage listings and leave ratings. The graph separates these domain stages while retaining authentication providers, private document storage, notifications, and administration. The README documents marketplace capabilities; sampled source and the source index support the shown integrations, while unsampled view behavior is not expanded into speculative edges.

Main entry points: [`core/models.py`](https://github.com/crowq87/autohub/blob/main/core/models.py) (Marketplace Data), [`core/views.py`](https://github.com/crowq87/autohub/blob/main/core/views.py) (Account And Verification Views), [`core/urls.py`](https://github.com/crowq87/autohub/blob/main/core/urls.py) (URL Routes), [`core/forms.py`](https://github.com/crowq87/autohub/blob/main/core/forms.py) (Account Forms)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_market["Marketplace"]
  node_routes["URL Routes<br/>[urls.py]"]
  node_market_views["Marketplace Views<br/>[views.py]"]
  node_listing_form["Listing Forms<br/>[forms.py]"]
  node_market_data[("Marketplace Data<br/>[models.py]")]
end

subgraph group_accounts["Accounts And Trust"]
  node_account_views["Account And Verification Views<br/>[views.py]"]
  node_account_forms["Account Forms<br/>[forms.py]"]
  node_firebase_utils["Firebase Authentication<br/>[firebase_utils.py]"]
  node_firebase_config["Firebase Setup<br/>[firebase_config.py]"]
  node_trust_storage["Private ID Storage<br/>[supabase_utils.py]"]
end

subgraph group_engagement["Messaging And Feedback"]
  node_chat_views["Chat Views<br/>[views.py]"]
  node_ratings["Ratings Forms<br/>[forms.py]"]
  node_notifications["Notification Context"]
  node_listing_signal["Listing Notifications<br/>[signals.py]"]
end

subgraph group_platform["Services And Administration"]
  node_email["Email Delivery<br/>[email_utils.py]"]
  node_admin_views["Admin Review Views<br/>[views.py]"]
  node_django_admin["Django Admin<br/>[admin.py]"]
end

node_visitor(("Visitor Or Member"))
node_firebase_service{{"Firebase"}}
node_supabase_service{{"Supabase Storage"}}
node_email_service{{"Brevo Or SMTP"}}

node_visitor -->|"requests pages"| node_routes
node_routes -->|"routes listing pages"| node_market_views
node_routes -->|"routes account pages"| node_account_views
node_routes -->|"routes chat actions"| node_chat_views
node_routes -->|"routes admin actions"| node_admin_views
node_market_views -->|"uses forms"| node_listing_form
node_market_views -->|"queries listings"| node_market_data
node_account_views -->|"uses forms"| node_account_forms
node_account_views -->|"updates profiles"| node_market_data
node_account_views -->|"checks accounts"| node_firebase_utils
node_account_views -->|"uploads ID documents"| node_trust_storage
node_account_views -->|"sends account email"| node_email
node_account_forms -->|"creates profile data"| node_market_data
node_account_forms -->|"creates auth account"| node_firebase_service
node_firebase_utils -->|"sends verification email"| node_email
node_firebase_config -->|"initializes SDK"| node_firebase_service
node_trust_storage -->|"uploads documents"| node_supabase_service
node_chat_views -->|"reads and writes chats"| node_market_data
node_ratings -->|"models ratings"| node_market_data
node_notifications -->|"counts notifications"| node_market_data
node_listing_signal -->|"creates notification"| node_market_data
node_admin_views -->|"reviews marketplace records"| node_market_data
node_admin_views -->|"requests signed document links"| node_trust_storage
node_django_admin -->|"manages marketplace data"| node_market_data
node_email -->|"delivers messages"| node_email_service

click node_routes "https://github.com/crowq87/autohub/blob/main/core/urls.py"
click node_market_views "https://github.com/crowq87/autohub/blob/main/core/views.py"
click node_listing_form "https://github.com/crowq87/autohub/blob/main/core/forms.py"
click node_market_data "https://github.com/crowq87/autohub/blob/main/core/models.py"
click node_account_views "https://github.com/crowq87/autohub/blob/main/core/views.py"
click node_account_forms "https://github.com/crowq87/autohub/blob/main/core/forms.py"
click node_firebase_utils "https://github.com/crowq87/autohub/blob/main/core/firebase_utils.py"
click node_firebase_config "https://github.com/crowq87/autohub/blob/main/firebase_config.py"
click node_trust_storage "https://github.com/crowq87/autohub/blob/main/core/supabase_utils.py"
click node_chat_views "https://github.com/crowq87/autohub/blob/main/core/views.py"
click node_ratings "https://github.com/crowq87/autohub/blob/main/core/forms.py"
click node_notifications "https://github.com/crowq87/autohub/blob/main/core/context_processors.py"
click node_listing_signal "https://github.com/crowq87/autohub/blob/main/core/signals.py"
click node_email "https://github.com/crowq87/autohub/blob/main/core/email_utils.py"
click node_admin_views "https://github.com/crowq87/autohub/blob/main/core/views.py"
click node_django_admin "https://github.com/crowq87/autohub/blob/main/core/admin.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_routes,node_market_views,node_listing_form,node_market_data toneBlue
class node_account_views,node_account_forms,node_firebase_utils,node_firebase_config,node_trust_storage,node_supabase_service toneAmber
class node_chat_views,node_ratings,node_notifications,node_listing_signal toneMint
class node_email,node_admin_views,node_django_admin toneRose
class node_visitor,node_firebase_service,node_email_service toneIndigo
```

## Components

### Marketplace

- [URL Routes](https://github.com/crowq87/autohub/blob/main/core/urls.py): `core/urls.py`
- [Marketplace Views](https://github.com/crowq87/autohub/blob/main/core/views.py): `core/views.py`
- [Listing Forms](https://github.com/crowq87/autohub/blob/main/core/forms.py): `core/forms.py`
- [Marketplace Data](https://github.com/crowq87/autohub/blob/main/core/models.py): `core/models.py`

### Accounts And Trust

- [Account And Verification Views](https://github.com/crowq87/autohub/blob/main/core/views.py): `core/views.py`
- [Account Forms](https://github.com/crowq87/autohub/blob/main/core/forms.py): `core/forms.py`
- [Firebase Authentication](https://github.com/crowq87/autohub/blob/main/core/firebase_utils.py): `core/firebase_utils.py`
- [Firebase Setup](https://github.com/crowq87/autohub/blob/main/firebase_config.py): `firebase_config.py`
- [Private ID Storage](https://github.com/crowq87/autohub/blob/main/core/supabase_utils.py): `core/supabase_utils.py`

### Messaging And Feedback

- [Chat Views](https://github.com/crowq87/autohub/blob/main/core/views.py): `core/views.py`
- [Ratings Forms](https://github.com/crowq87/autohub/blob/main/core/forms.py): `core/forms.py`
- [Notification Context](https://github.com/crowq87/autohub/blob/main/core/context_processors.py): `core/context_processors.py`
- [Listing Notifications](https://github.com/crowq87/autohub/blob/main/core/signals.py): `core/signals.py`

### Services And Administration

- [Email Delivery](https://github.com/crowq87/autohub/blob/main/core/email_utils.py): `core/email_utils.py`
- [Admin Review Views](https://github.com/crowq87/autohub/blob/main/core/views.py): `core/views.py`
- [Django Admin](https://github.com/crowq87/autohub/blob/main/core/admin.py): `core/admin.py`

### Other components

- **Visitor Or Member**
- **Firebase**
- **Supabase Storage**
- **Brevo Or SMTP**

## Connections

- Visitor Or Member → URL Routes: requests pages (evidence: `core/urls.py`)
- URL Routes → Marketplace Views: routes listing pages (evidence: `core/urls.py`)
- URL Routes → Account And Verification Views: routes account pages (evidence: `core/urls.py`)
- URL Routes → Chat Views: routes chat actions (evidence: `core/urls.py`)
- URL Routes → Admin Review Views: routes admin actions (evidence: `core/urls.py`)
- Marketplace Views → Listing Forms: uses forms (evidence: `core/views.py`)
- Marketplace Views → Marketplace Data: queries listings (evidence: `core/views.py`)
- Account And Verification Views → Account Forms: uses forms (evidence: `core/views.py`)
- Account And Verification Views → Marketplace Data: updates profiles (evidence: `core/views.py`)
- Account And Verification Views → Firebase Authentication: checks accounts (evidence: `core/views.py`)
- Account And Verification Views → Private ID Storage: uploads ID documents (evidence: `core/views.py`)
- Account And Verification Views → Email Delivery: sends account email (evidence: `core/views.py`)
- Account Forms → Marketplace Data: creates profile data (evidence: `core/forms.py`)
- Account Forms → Firebase: creates auth account (evidence: `core/forms.py`)
- Firebase Authentication → Email Delivery: sends verification email (evidence: `core/firebase_utils.py`)
- Firebase Setup → Firebase: initializes SDK (evidence: `firebase_config.py`)
- Private ID Storage → Supabase Storage: uploads documents (evidence: `core/supabase_utils.py`)
- Chat Views → Marketplace Data: reads and writes chats (evidence: `core/views.py`)
- Ratings Forms → Marketplace Data: models ratings (evidence: `core/forms.py`)
- Notification Context → Marketplace Data: counts notifications (evidence: `core/context_processors.py`)
- Listing Notifications → Marketplace Data: creates notification (evidence: `core/signals.py`)
- Admin Review Views → Marketplace Data: reviews marketplace records (evidence: `core/views.py`)
- Admin Review Views → Private ID Storage: requests signed document links (evidence: `core/views.py`)
- Django Admin → Marketplace Data: manages marketplace data (evidence: `core/admin.py`)
- Email Delivery → Brevo Or SMTP: delivers messages (evidence: `core/email_utils.py`)
