# votrungkien005-pixel/acczone architecture

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

- Interactive diagram: https://gitdiagram.com/votrungkien005-pixel/acczone
- Repository: https://github.com/votrungkien005-pixel/acczone

## Overview

AccZone is a Django demo storefront: visitors browse and filter sample products, register or sign in, add available stock to a session cart, and submit an order using demo-wallet balance. Checkout records the order, debits the wallet, and assigns stock; customers can then view their own order history and delivered credentials. Admins manage products, inventory, orders, and wallets, including generating demo credentials. README documents the MySQL-backed ORM and demo-only payment scope; some view and template details are unsampled, so the graph omits unverified links.

Main entry points: [`store/urls.py`](https://github.com/votrungkien005-pixel/acczone/blob/main/store/urls.py) (URL Routing), [`store/models.py`](https://github.com/votrungkien005-pixel/acczone/blob/main/store/models.py) (Store Data Models), [`store/views.py`](https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py) (Demo Checkout), [`static/store/app.js`](https://github.com/votrungkien005-pixel/acczone/blob/main/static/store/app.js) (Store UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_browser["Store UI<br/>[app.js]"]
  node_routing["URL Routing<br/>[urls.py]"]
  node_catalogue["Product Catalogue<br/>[views.py]"]
end

subgraph group_accounts["Customer Accounts"]
  node_registration["Registration<br/>[views.py]"]
  node_authentication["Sign In / Out<br/>[views.py]"]
end

subgraph group_commerce["Orders And Wallet"]
  node_cart["Session Cart<br/>[views.py]"]
  node_checkout["Demo Checkout<br/>[views.py]"]
  node_wallet["Demo Wallet<br/>[views.py]"]
  node_history["Order History<br/>[views.py]"]
  node_delivery["Credential Delivery<br/>[models.py]"]
end

subgraph group_operations["Administration And Data"]
  node_admin["Store Admin<br/>[admin.py]"]
  node_seeding["Sample Products<br/>[seed_products.py]"]
  node_domain["Store Data Models<br/>[models.py]"]
  node_database[("MySQL Database")]
end

node_visitor(("Shopper"))

node_visitor -->|"uses"| node_browser
node_browser -->|"submits actions"| node_routing
node_routing -->|"routes requests"| node_catalogue
node_routing -->|"routes requests"| node_registration
node_routing -->|"routes requests"| node_authentication
node_routing -->|"routes requests"| node_cart
node_routing -->|"routes requests"| node_checkout
node_routing -->|"routes requests"| node_wallet
node_routing -->|"routes requests"| node_history
node_catalogue -->|"queries products"| node_domain
node_cart -->|"checks stock"| node_domain
node_checkout -->|"records purchase"| node_domain
node_checkout -->|"debits balance"| node_wallet
node_checkout -->|"assigns credentials"| node_delivery
node_history -->|"queries own orders"| node_domain
node_wallet -->|"reads and updates"| node_domain
node_admin -->|"manages records"| node_domain
node_seeding -->|"creates products"| node_domain
node_domain -->|"persists through ORM"| node_database

click node_browser "https://github.com/votrungkien005-pixel/acczone/blob/main/static/store/app.js"
click node_routing "https://github.com/votrungkien005-pixel/acczone/blob/main/store/urls.py"
click node_catalogue "https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py"
click node_registration "https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py"
click node_authentication "https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py"
click node_cart "https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py"
click node_checkout "https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py"
click node_wallet "https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py"
click node_history "https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py"
click node_delivery "https://github.com/votrungkien005-pixel/acczone/blob/main/store/models.py"
click node_admin "https://github.com/votrungkien005-pixel/acczone/blob/main/store/admin.py"
click node_seeding "https://github.com/votrungkien005-pixel/acczone/blob/main/store/management/commands/seed_products.py"
click node_domain "https://github.com/votrungkien005-pixel/acczone/blob/main/store/models.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_browser,node_routing,node_catalogue toneBlue
class node_registration,node_authentication toneAmber
class node_cart,node_checkout,node_wallet,node_history,node_delivery toneMint
class node_admin,node_seeding,node_domain,node_database toneRose
class node_visitor toneIndigo
```

## Components

### Storefront

- [Store UI](https://github.com/votrungkien005-pixel/acczone/blob/main/static/store/app.js): `static/store/app.js`
- [URL Routing](https://github.com/votrungkien005-pixel/acczone/blob/main/store/urls.py): `store/urls.py`
- [Product Catalogue](https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py): `store/views.py`

### Customer Accounts

- [Registration](https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py): `store/views.py`
- [Sign In / Out](https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py): `store/views.py`

### Orders And Wallet

- [Session Cart](https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py): `store/views.py`
- [Demo Checkout](https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py): `store/views.py`
- [Demo Wallet](https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py): `store/views.py`
- [Order History](https://github.com/votrungkien005-pixel/acczone/blob/main/store/views.py): `store/views.py`
- [Credential Delivery](https://github.com/votrungkien005-pixel/acczone/blob/main/store/models.py): `store/models.py`

### Administration And Data

- [Store Admin](https://github.com/votrungkien005-pixel/acczone/blob/main/store/admin.py): `store/admin.py`
- [Sample Products](https://github.com/votrungkien005-pixel/acczone/blob/main/store/management/commands/seed_products.py): `store/management/commands/seed_products.py`
- [Store Data Models](https://github.com/votrungkien005-pixel/acczone/blob/main/store/models.py): `store/models.py`
- **MySQL Database**

### Other components

- **Shopper**

## Connections

- Shopper → Store UI: uses (evidence: `README.md`)
- Store UI → URL Routing: submits actions (evidence: `README.md`)
- URL Routing → Product Catalogue: routes requests (evidence: `store/urls.py`)
- URL Routing → Registration: routes requests (evidence: `store/urls.py`)
- URL Routing → Sign In / Out: routes requests (evidence: `store/urls.py`)
- URL Routing → Session Cart: routes requests (evidence: `store/urls.py`)
- URL Routing → Demo Checkout: routes requests (evidence: `store/urls.py`)
- URL Routing → Demo Wallet: routes requests (evidence: `store/urls.py`)
- URL Routing → Order History: routes requests (evidence: `store/urls.py`)
- Product Catalogue → Store Data Models: queries products (evidence: `store/views.py`)
- Session Cart → Store Data Models: checks stock (evidence: `store/views.py`)
- Demo Checkout → Store Data Models: records purchase (evidence: `store/views.py`)
- Demo Checkout → Demo Wallet: debits balance (evidence: `README.md`)
- Demo Checkout → Credential Delivery: assigns credentials (evidence: `README.md`)
- Order History → Store Data Models: queries own orders (evidence: `README.md`)
- Demo Wallet → Store Data Models: reads and updates (evidence: `store/views.py`)
- Store Admin → Store Data Models: manages records (evidence: `store/admin.py`)
- Sample Products → Store Data Models: creates products (evidence: `store/management/commands/seed_products.py`)
- Store Data Models → MySQL Database: persists through ORM (evidence: `README.md`)
