# srikanthbanothu26/bakery-website architecture

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

- Interactive diagram: https://gitdiagram.com/srikanthbanothu26/bakery-website
- Repository: https://github.com/srikanthbanothu26/bakery-website

## Overview

This Django bakery-management application serves a customer-facing site and account flows, supports product browsing and online ordering, and includes a separate point-of-sale workflow. Users enter through the project URL router, then reach app-specific views that read and update Django models. The README also describes product management, billing, dashboards, and authentication. The graph preserves those capabilities while distinguishing online orders from POS orders. Some subsystem paths and relationships are based on the README or SOURCE INDEX; unsampled details are not inferred.

Main entry points: [`Store/models.py`](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Store/models.py) (Products and online orders), [`Bakerywebsite/urls.py`](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Bakerywebsite/urls.py) (Project URL router), [`Home/models.py`](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Home/models.py) (Bakery and profile data), [`Home/views.py`](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Home/views.py) (Site and profile views)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site and profiles"]
  node_home_views["Site and profile views<br/>[views.py]"]
  node_home_data[("Bakery and profile data<br/>[models.py]")]
  node_home_forms["Profile and address forms<br/>[forms.py]"]
  node_sitemap["Static sitemap<br/>[sitemaps.py]"]
end

subgraph group_identity["Accounts"]
  node_auth_views["Authentication and access views<br/>[views.py]"]
  node_auth_forms["Registration and login forms<br/>[forms.py]"]
end

subgraph group_commerce["Online commerce"]
  node_catalog_views["Catalog and order views<br/>[views.py]"]
  node_catalog_forms["Product forms<br/>[forms.py]"]
  node_store_data[("Products and online orders<br/>[models.py]")]
  node_order_task["Order status task<br/>[tasks.py]"]
end

subgraph group_counter["Point of sale"]
  node_pos_views["POS checkout and history<br/>[views.py]"]
  node_pos_forms["Payment form<br/>[forms.py]"]
  node_pos_data[("POS orders and payments<br/>[models.py]")]
end

subgraph group_runtime["Django runtime"]
  node_router["Project URL router<br/>[urls.py]"]
  node_django["Django application runtime<br/>[settings.py]"]
end

node_visitor(("Customer / staff"))
node_geocoder{{"Nominatim geocoding"}}

node_visitor -->|"sends requests"| node_router
node_router -->|"routes site"| node_home_views
node_router -->|"routes accounts"| node_auth_views
node_router -->|"routes store"| node_catalog_views
node_router -->|"routes POS"| node_pos_views
node_router -->|"serves sitemap"| node_sitemap
node_router -->|"configures routes"| node_django
node_home_views -->|"reads and updates"| node_home_data
node_home_views -->|"uses forms"| node_home_forms
node_home_views -->|"reads catalog"| node_store_data
node_home_views -->|"requests reverse geocoding"| node_geocoder
node_auth_views -->|"uses forms"| node_auth_forms
node_auth_views -->|"reads bakery data"| node_home_data
node_auth_views -.->|"manages product access"| node_catalog_views
node_catalog_views -->|"uses forms"| node_catalog_forms
node_catalog_views -->|"reads and updates"| node_store_data
node_catalog_views -->|"reads bakery data"| node_home_data
node_store_data -->|"references addresses"| node_home_data
node_store_data -->|"schedules status task"| node_order_task
node_order_task -->|"updates order status"| node_store_data
node_pos_views -->|"uses payment form"| node_pos_forms
node_pos_views -->|"creates and reads"| node_pos_data
node_pos_views -->|"reads products"| node_store_data
node_pos_views -->|"reads bakery data"| node_home_data
node_pos_data -->|"references products"| node_store_data
node_django -.->|"persists models"| node_home_data
node_django -.->|"persists models"| node_store_data
node_django -.->|"persists models"| node_pos_data

click node_router "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Bakerywebsite/urls.py"
click node_home_views "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Home/views.py"
click node_home_data "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Home/models.py"
click node_home_forms "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Home/forms.py"
click node_sitemap "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Home/sitemaps.py"
click node_auth_views "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/userauth/views.py"
click node_auth_forms "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/userauth/forms.py"
click node_catalog_views "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Store/views.py"
click node_catalog_forms "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Store/forms.py"
click node_store_data "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Store/models.py"
click node_order_task "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Store/tasks.py"
click node_pos_views "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/pointofsale/views.py"
click node_pos_forms "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/pointofsale/forms.py"
click node_pos_data "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/pointofsale/models.py"
click node_django "https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Bakerywebsite/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_home_views,node_home_data,node_home_forms,node_sitemap toneBlue
class node_auth_views,node_auth_forms toneAmber
class node_catalog_views,node_catalog_forms,node_store_data,node_order_task toneMint
class node_pos_views,node_pos_forms,node_pos_data toneRose
class node_router,node_django,node_visitor,node_geocoder toneIndigo
```

## Components

### Site and profiles

- [Site and profile views](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Home/views.py): `Home/views.py`
- [Bakery and profile data](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Home/models.py): `Home/models.py`
- [Profile and address forms](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Home/forms.py): `Home/forms.py`
- [Static sitemap](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Home/sitemaps.py): `Home/sitemaps.py`

### Accounts

- [Authentication and access views](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/userauth/views.py): `userauth/views.py`
- [Registration and login forms](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/userauth/forms.py): `userauth/forms.py`

### Online commerce

- [Catalog and order views](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Store/views.py): `Store/views.py`
- [Product forms](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Store/forms.py): `Store/forms.py`
- [Products and online orders](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Store/models.py): `Store/models.py`
- [Order status task](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Store/tasks.py): `Store/tasks.py`

### Point of sale

- [POS checkout and history](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/pointofsale/views.py): `pointofsale/views.py`
- [Payment form](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/pointofsale/forms.py): `pointofsale/forms.py`
- [POS orders and payments](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/pointofsale/models.py): `pointofsale/models.py`

### Django runtime

- [Project URL router](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Bakerywebsite/urls.py): `Bakerywebsite/urls.py`
- [Django application runtime](https://github.com/srikanthbanothu26/bakery-website/blob/Devops/Bakerywebsite/settings.py): `Bakerywebsite/settings.py`

### Other components

- **Customer / staff**
- **Nominatim geocoding**

## Connections

- Customer / staff → Project URL router: sends requests (evidence: `Bakerywebsite/urls.py`)
- Project URL router → Site and profile views: routes site (evidence: `Bakerywebsite/urls.py`)
- Project URL router → Authentication and access views: routes accounts (evidence: `Bakerywebsite/urls.py`)
- Project URL router → Catalog and order views: routes store (evidence: `Bakerywebsite/urls.py`)
- Project URL router → POS checkout and history: routes POS (evidence: `Bakerywebsite/urls.py`)
- Project URL router → Static sitemap: serves sitemap (evidence: `Bakerywebsite/urls.py`)
- Project URL router → Django application runtime: configures routes (evidence: `Bakerywebsite/urls.py`)
- Site and profile views → Bakery and profile data: reads and updates (evidence: `Home/views.py`)
- Site and profile views → Profile and address forms: uses forms (evidence: `Home/views.py`)
- Site and profile views → Products and online orders: reads catalog (evidence: `Home/views.py`)
- Site and profile views → Nominatim geocoding: requests reverse geocoding (evidence: `Home/views.py`)
- Authentication and access views → Registration and login forms: uses forms (evidence: `userauth/views.py`)
- Authentication and access views → Bakery and profile data: reads bakery data (evidence: `userauth/views.py`)
- Authentication and access views → Catalog and order views: manages product access
- Catalog and order views → Product forms: uses forms (evidence: `Store/views.py`)
- Catalog and order views → Products and online orders: reads and updates (evidence: `Store/views.py`)
- Catalog and order views → Bakery and profile data: reads bakery data (evidence: `Store/views.py`)
- Products and online orders → Bakery and profile data: references addresses (evidence: `Store/models.py`)
- Products and online orders → Order status task: schedules status task (evidence: `Store/models.py`)
- Order status task → Products and online orders: updates order status (evidence: `Store/tasks.py`)
- POS checkout and history → Payment form: uses payment form (evidence: `pointofsale/views.py`)
- POS checkout and history → POS orders and payments: creates and reads (evidence: `pointofsale/views.py`)
- POS checkout and history → Products and online orders: reads products (evidence: `pointofsale/views.py`)
- POS checkout and history → Bakery and profile data: reads bakery data (evidence: `pointofsale/views.py`)
- POS orders and payments → Products and online orders: references products (evidence: `pointofsale/models.py`)
- Django application runtime → Bakery and profile data: persists models
- Django application runtime → Products and online orders: persists models
- Django application runtime → POS orders and payments: persists models
