# aswin154/orgrange architecture

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

- Interactive diagram: https://gitdiagram.com/aswin154/orgrange
- Repository: https://github.com/aswin154/orgrange

## Overview

Avodha Market is a Django storefront for accounts, product browsing/search, and session-based shopping carts. The primary user flow routes requests into account or shop views; shoppers browse/search a catalog, inspect a product, add it to a cart, and review or adjust cart items. Product and cart state is represented by Django models. The README also advertises guest checkout, order management, and payment processing, but no implementation for those stages appears in the supplied tree, so they are not shown as runtime components. Edges are limited to relationships explicit in the README or sampled source/index.

Main entry points: [`avodha_market/avodha_market/urls.py`](https://github.com/aswin154/orgrange/blob/main/avodha_market/avodha_market/urls.py) (URL Router), [`avodha_market/cart/views.py`](https://github.com/aswin154/orgrange/blob/main/avodha_market/cart/views.py) (Cart Actions), [`avodha_market/shop/views.py`](https://github.com/aswin154/orgrange/blob/main/avodha_market/shop/views.py) (Catalog Views), [`avodha_market/cart/models.py`](https://github.com/aswin154/orgrange/blob/main/avodha_market/cart/models.py) (Cart & Items)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Request Routing"]
  node_routing["URL Router<br/>[urls.py]"]
end

subgraph group_identity["Accounts"]
  node_account_views["Account Actions<br/>[views.py]"]
  node_site_settings[("Site Settings<br/>[models.py]")]
end

subgraph group_catalog["Product Catalog"]
  node_catalog_views["Catalog Views<br/>[views.py]"]
  node_catalog_data[("Products &amp; Categories<br/>[models.py]")]
end

subgraph group_basket["Shopping Cart"]
  node_cart_views["Cart Actions<br/>[views.py]"]
  node_cart_data[("Cart &amp; Items<br/>[models.py]")]
  node_cart_count["Cart Count Context"]
  node_guest_checkout["Guest Checkout"]
  node_orders_payments["Orders &amp; Payments"]
end

node_visitor(("Shopper"))

node_visitor -->|"requests"| node_routing
node_routing -->|"routes storefront"| node_catalog_views
node_routing -->|"includes accounts"| node_account_views
node_routing -->|"includes cart"| node_cart_views
node_account_views -->|"reads settings"| node_site_settings
node_catalog_views -->|"queries catalog"| node_catalog_data
node_catalog_views -->|"checks cart items"| node_cart_data
node_cart_views -->|"loads product"| node_catalog_data
node_cart_views -->|"manages items"| node_cart_data
node_cart_count -->|"gets cart id"| node_cart_views
node_cart_count -->|"counts items"| node_cart_data
node_visitor -.->|"can checkout"| node_guest_checkout
node_guest_checkout -.->|"places order"| node_orders_payments

click node_routing "https://github.com/aswin154/orgrange/blob/main/avodha_market/avodha_market/urls.py"
click node_account_views "https://github.com/aswin154/orgrange/blob/main/avodha_market/accounts/views.py"
click node_site_settings "https://github.com/aswin154/orgrange/blob/main/avodha_market/accounts/models.py"
click node_catalog_views "https://github.com/aswin154/orgrange/blob/main/avodha_market/shop/views.py"
click node_catalog_data "https://github.com/aswin154/orgrange/blob/main/avodha_market/shop/models.py"
click node_cart_views "https://github.com/aswin154/orgrange/blob/main/avodha_market/cart/views.py"
click node_cart_data "https://github.com/aswin154/orgrange/blob/main/avodha_market/cart/models.py"
click node_cart_count "https://github.com/aswin154/orgrange/blob/main/avodha_market/cart/context_processors.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_routing toneBlue
class node_account_views,node_site_settings toneAmber
class node_catalog_views,node_catalog_data toneMint
class node_cart_views,node_cart_data,node_cart_count,node_guest_checkout,node_orders_payments toneRose
class node_visitor toneIndigo
```

## Components

### Request Routing

- [URL Router](https://github.com/aswin154/orgrange/blob/main/avodha_market/avodha_market/urls.py): `avodha_market/avodha_market/urls.py`

### Accounts

- [Account Actions](https://github.com/aswin154/orgrange/blob/main/avodha_market/accounts/views.py): `avodha_market/accounts/views.py`
- [Site Settings](https://github.com/aswin154/orgrange/blob/main/avodha_market/accounts/models.py): `avodha_market/accounts/models.py`

### Product Catalog

- [Catalog Views](https://github.com/aswin154/orgrange/blob/main/avodha_market/shop/views.py): `avodha_market/shop/views.py`
- [Products & Categories](https://github.com/aswin154/orgrange/blob/main/avodha_market/shop/models.py): `avodha_market/shop/models.py`

### Shopping Cart

- [Cart Actions](https://github.com/aswin154/orgrange/blob/main/avodha_market/cart/views.py): `avodha_market/cart/views.py`
- [Cart & Items](https://github.com/aswin154/orgrange/blob/main/avodha_market/cart/models.py): `avodha_market/cart/models.py`
- [Cart Count Context](https://github.com/aswin154/orgrange/blob/main/avodha_market/cart/context_processors.py): `avodha_market/cart/context_processors.py`
- **Guest Checkout**
- **Orders & Payments**

### Other components

- **Shopper**

## Connections

- Shopper → URL Router: requests (evidence: `avodha_market/avodha_market/urls.py`)
- URL Router → Catalog Views: routes storefront (evidence: `avodha_market/avodha_market/urls.py`)
- URL Router → Account Actions: includes accounts (evidence: `avodha_market/avodha_market/urls.py`)
- URL Router → Cart Actions: includes cart (evidence: `avodha_market/avodha_market/urls.py`)
- Account Actions → Site Settings: reads settings (evidence: `avodha_market/accounts/views.py`)
- Catalog Views → Products & Categories: queries catalog (evidence: `avodha_market/shop/views.py`)
- Catalog Views → Cart & Items: checks cart items (evidence: `avodha_market/shop/views.py`)
- Cart Actions → Products & Categories: loads product (evidence: `avodha_market/cart/views.py`)
- Cart Actions → Cart & Items: manages items (evidence: `avodha_market/cart/views.py`)
- Cart Count Context → Cart Actions: gets cart id (evidence: `avodha_market/cart/context_processors.py`)
- Cart Count Context → Cart & Items: counts items (evidence: `avodha_market/cart/context_processors.py`)
- Shopper → Guest Checkout: can checkout (evidence: `README.md`)
- Guest Checkout → Orders & Payments: places order
