# bryhanf/delusneakers architecture

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

- Interactive diagram: https://gitdiagram.com/bryhanf/delusneakers
- Repository: https://github.com/bryhanf/delusneakers

## Overview

DeluSneakers is a desktop sneaker storefront. A customer launches the app, browses or filters the catalog, opens a product, selects a size and quantity, and completes checkout; the app records the order and produces a receipt. Account views support profile, order history and payment-method history, while administrators manage products and size-level stock. The README documents these capabilities; the sampled sources show the main UI, database calls and account flow. Root-level modules appear to be a parallel legacy implementation, distinct from the ui/ application launched by main.py.

Main entry points: [`database/conexionDB.py`](https://github.com/bryhanf/delusneakers/blob/main/database/conexionDB.py) (Store operations), [`ui/GUI.py`](https://github.com/bryhanf/delusneakers/blob/main/ui/GUI.py) (Catalog and filters), [`GUI.py`](https://github.com/bryhanf/delusneakers/blob/main/GUI.py) (Legacy storefront), [`ui/vista_producto.py`](https://github.com/bryhanf/delusneakers/blob/main/ui/vista_producto.py) (Product detail)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront UI"]
  node_main["App startup<br/>[main.py]"]
  node_catalog["Catalog and filters<br/>[GUI.py]"]
  node_assets["Product images"]
end

subgraph group_commerce["Commerce"]
  node_detail["Product detail<br/>[vista_producto.py]"]
  node_cart["Cart and checkout<br/>[vista_producto.py]"]
  node_receipt["Purchase receipt<br/>[vista_producto.py]"]
  node_product_admin["Product and stock editor<br/>[editor_producto.py]"]
end

subgraph group_accounts["Accounts"]
  node_auth["Sign-in and registration"]
  node_profile["Profile and order history<br/>[vista_perfil.py]"]
end

subgraph group_persistence["Persistence"]
  node_db_access["Store operations<br/>[conexionDB.py]"]
  node_postgres[("PostgreSQL")]
  node_db_config["Database configuration<br/>[config.py]"]
end

subgraph group_legacy["Legacy UI"]
  node_legacy_gui["Legacy storefront<br/>[GUI.py]"]
  node_legacy_auth["Legacy authentication"]
  node_legacy_products["Legacy product views<br/>[vista_producto.py]"]
  node_legacy_editor["Legacy product editor<br/>[editor_producto.py]"]
  node_legacy_db["Legacy catalog access<br/>[conexionDB.py]"]
end

node_customer(("Customer"))
node_admin(("Administrator"))

node_customer -->|"launches"| node_main
node_admin -->|"launches"| node_main
node_main -->|"checks connection"| node_db_access
node_main -->|"starts app"| node_catalog
node_catalog -->|"loads products"| node_db_access
node_catalog -->|"authenticates"| node_auth
node_catalog -->|"opens detail"| node_detail
node_catalog -->|"opens editor"| node_product_admin
node_catalog -->|"opens account"| node_profile
node_detail -->|"loads size stock"| node_db_access
node_detail -->|"adds selected item"| node_cart
node_cart -->|"records purchase"| node_db_access
node_cart -->|"generates"| node_receipt
node_product_admin -->|"updates products"| node_db_access
node_profile -->|"reads and updates"| node_db_access
node_db_access -->|"queries and writes"| node_postgres
node_db_access -->|"reads URL"| node_db_config
node_detail -.->|"resolves images"| node_assets
node_legacy_gui -->|"authenticates"| node_legacy_auth
node_legacy_gui -->|"opens product views"| node_legacy_products
node_legacy_gui -->|"opens editor"| node_legacy_editor
node_legacy_gui -->|"loads products"| node_legacy_db
node_legacy_db -->|"reads URL"| node_db_config
node_legacy_products -.->|"similar flow"| node_cart

click node_main "https://github.com/bryhanf/delusneakers/blob/main/main.py"
click node_catalog "https://github.com/bryhanf/delusneakers/blob/main/ui/GUI.py"
click node_auth "https://github.com/bryhanf/delusneakers/blob/main/ui/usuarios_manager.py"
click node_detail "https://github.com/bryhanf/delusneakers/blob/main/ui/vista_producto.py"
click node_cart "https://github.com/bryhanf/delusneakers/blob/main/ui/vista_producto.py"
click node_receipt "https://github.com/bryhanf/delusneakers/blob/main/ui/vista_producto.py"
click node_product_admin "https://github.com/bryhanf/delusneakers/blob/main/ui/editor_producto.py"
click node_profile "https://github.com/bryhanf/delusneakers/blob/main/ui/vista_perfil.py"
click node_db_access "https://github.com/bryhanf/delusneakers/blob/main/database/conexionDB.py"
click node_db_config "https://github.com/bryhanf/delusneakers/blob/main/config.py"
click node_assets "https://github.com/bryhanf/delusneakers/tree/main/assets/imgs"
click node_legacy_gui "https://github.com/bryhanf/delusneakers/blob/main/GUI.py"
click node_legacy_auth "https://github.com/bryhanf/delusneakers/blob/main/usuarios_manager.py"
click node_legacy_products "https://github.com/bryhanf/delusneakers/blob/main/vista_producto.py"
click node_legacy_editor "https://github.com/bryhanf/delusneakers/blob/main/editor_producto.py"
click node_legacy_db "https://github.com/bryhanf/delusneakers/blob/main/conexionDB.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_main,node_catalog,node_assets toneBlue
class node_detail,node_cart,node_receipt,node_product_admin toneAmber
class node_auth,node_profile toneMint
class node_db_access,node_postgres,node_db_config toneRose
class node_legacy_gui,node_legacy_auth,node_legacy_products,node_legacy_editor,node_legacy_db,node_customer,node_admin toneIndigo
```

## Components

### Storefront UI

- [App startup](https://github.com/bryhanf/delusneakers/blob/main/main.py): `main.py`
- [Catalog and filters](https://github.com/bryhanf/delusneakers/blob/main/ui/GUI.py): `ui/GUI.py`
- [Product images](https://github.com/bryhanf/delusneakers/tree/main/assets/imgs): `assets/imgs`

### Commerce

- [Product detail](https://github.com/bryhanf/delusneakers/blob/main/ui/vista_producto.py): `ui/vista_producto.py`
- [Cart and checkout](https://github.com/bryhanf/delusneakers/blob/main/ui/vista_producto.py): `ui/vista_producto.py`
- [Purchase receipt](https://github.com/bryhanf/delusneakers/blob/main/ui/vista_producto.py): `ui/vista_producto.py`
- [Product and stock editor](https://github.com/bryhanf/delusneakers/blob/main/ui/editor_producto.py): `ui/editor_producto.py`

### Accounts

- [Sign-in and registration](https://github.com/bryhanf/delusneakers/blob/main/ui/usuarios_manager.py): `ui/usuarios_manager.py`
- [Profile and order history](https://github.com/bryhanf/delusneakers/blob/main/ui/vista_perfil.py): `ui/vista_perfil.py`

### Persistence

- [Store operations](https://github.com/bryhanf/delusneakers/blob/main/database/conexionDB.py): `database/conexionDB.py`
- **PostgreSQL**
- [Database configuration](https://github.com/bryhanf/delusneakers/blob/main/config.py): `config.py`

### Legacy UI

- [Legacy storefront](https://github.com/bryhanf/delusneakers/blob/main/GUI.py): `GUI.py`
- [Legacy authentication](https://github.com/bryhanf/delusneakers/blob/main/usuarios_manager.py): `usuarios_manager.py`
- [Legacy product views](https://github.com/bryhanf/delusneakers/blob/main/vista_producto.py): `vista_producto.py`
- [Legacy product editor](https://github.com/bryhanf/delusneakers/blob/main/editor_producto.py): `editor_producto.py`
- [Legacy catalog access](https://github.com/bryhanf/delusneakers/blob/main/conexionDB.py): `conexionDB.py`

### Other components

- **Customer**
- **Administrator**

## Connections

- Customer → App startup: launches (evidence: `README.md`)
- Administrator → App startup: launches (evidence: `README.md`)
- App startup → Store operations: checks connection (evidence: `main.py`)
- App startup → Catalog and filters: starts app (evidence: `main.py`)
- Catalog and filters → Store operations: loads products (evidence: `ui/GUI.py`)
- Catalog and filters → Sign-in and registration: authenticates (evidence: `ui/GUI.py`)
- Catalog and filters → Product detail: opens detail (evidence: `ui/GUI.py`)
- Catalog and filters → Product and stock editor: opens editor (evidence: `ui/GUI.py`)
- Catalog and filters → Profile and order history: opens account (evidence: `ui/GUI.py`)
- Product detail → Store operations: loads size stock (evidence: `ui/vista_producto.py`)
- Product detail → Cart and checkout: adds selected item (evidence: `ui/vista_producto.py`)
- Cart and checkout → Store operations: records purchase (evidence: `README.md`)
- Cart and checkout → Purchase receipt: generates (evidence: `README.md`)
- Product and stock editor → Store operations: updates products (evidence: `ui/editor_producto.py`)
- Profile and order history → Store operations: reads and updates (evidence: `ui/vista_perfil.py`)
- Store operations → PostgreSQL: queries and writes (evidence: `database/conexionDB.py`)
- Store operations → Database configuration: reads URL (evidence: `database/conexionDB.py`)
- Product detail → Product images: resolves images (evidence: `ui/vista_producto.py`)
- Legacy storefront → Legacy authentication: authenticates (evidence: `GUI.py`)
- Legacy storefront → Legacy product views: opens product views (evidence: `GUI.py`)
- Legacy storefront → Legacy product editor: opens editor (evidence: `GUI.py`)
- Legacy storefront → Legacy catalog access: loads products (evidence: `GUI.py`)
- Legacy catalog access → Database configuration: reads URL (evidence: `conexionDB.py`)
- Legacy product views → Cart and checkout: similar flow
