# quan2451220004-sudo/24ct1_congnghephanmem architecture

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

- Interactive diagram: https://gitdiagram.com/quan2451220004-sudo/24ct1_congnghephanmem
- Repository: https://github.com/quan2451220004-sudo/24ct1_congnghephanmem

## Overview

BrewCraft Roasters is a static Vietnamese specialty-coffee storefront. Its documented customer journey starts at the page entry, supports product comparison and cart shopping, then gates checkout on login and collects delivery details before displaying a VietQR payment and invoice. The tree contains only index.html and home.html; README-described JavaScript modules and templates are absent, so feature nodes use the available page path and relationships rely on README documentation rather than inspected implementation.

Main entry points: [`home.html`](https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html) (Checkout), [`index.html`](https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/index.html) (Page Entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront &amp; Sensory Data"]
  node_entry["Page Entry<br/>[index.html]"]
  node_shop["Coffee Catalog<br/>[home.html]"]
  node_sensory["Sensory Profiles<br/>[home.html]"]
  node_compare["Product Comparison<br/>[home.html]"]
  node_cart["Shopping Cart<br/>[home.html]"]
end

subgraph group_identity["Identity &amp; Checkout"]
  node_auth["Account Access<br/>[home.html]"]
  node_account_store[("Browser Accounts<br/>[home.html]")]
  node_shipping["Delivery Details<br/>[home.html]"]
  node_checkout["Checkout<br/>[home.html]"]
end

subgraph group_payment["Payment &amp; Fulfillment"]
  node_vietqr["VietQR Payment<br/>[home.html]"]
  node_payment_demo["Payment Demo<br/>[home.html]"]
  node_invoice["Electronic Invoice<br/>[home.html]"]
end

node_customer(("Customer"))
node_bank_app["Banking App"]

node_customer -->|"opens"| node_entry
node_entry -->|"loads page"| node_shop
node_customer -->|"browses"| node_shop
node_shop -->|"shows profiles"| node_sensory
node_customer -->|"selects beans"| node_compare
node_sensory -->|"compares data"| node_compare
node_customer -->|"adds products"| node_cart
node_cart -->|"starts order"| node_checkout
node_checkout -->|"requires login"| node_auth
node_auth -->|"stores accounts"| node_account_store
node_auth -->|"continues after login"| node_shipping
node_shipping -->|"provides delivery details"| node_checkout
node_checkout -->|"creates payment QR"| node_vietqr
node_customer -->|"scans QR"| node_vietqr
node_vietqr -->|"prefills transfer"| node_bank_app
node_customer -->|"simulates payment"| node_payment_demo
node_payment_demo -->|"generates invoice"| node_invoice

click node_entry "https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/index.html"
click node_shop "https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html"
click node_sensory "https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html"
click node_compare "https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html"
click node_cart "https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html"
click node_auth "https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html"
click node_account_store "https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html"
click node_shipping "https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html"
click node_checkout "https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html"
click node_vietqr "https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html"
click node_payment_demo "https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html"
click node_invoice "https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html"

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_entry,node_shop,node_sensory,node_compare,node_cart toneBlue
class node_auth,node_account_store,node_shipping,node_checkout toneAmber
class node_vietqr,node_payment_demo,node_invoice toneMint
class node_customer,node_bank_app toneIndigo
```

## Components

### Storefront & Sensory Data

- [Page Entry](https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/index.html): `index.html`
- [Coffee Catalog](https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html): `home.html`
- [Sensory Profiles](https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html): `home.html`
- [Product Comparison](https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html): `home.html`
- [Shopping Cart](https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html): `home.html`

### Identity & Checkout

- [Account Access](https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html): `home.html`
- [Browser Accounts](https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html): `home.html`
- [Delivery Details](https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html): `home.html`
- [Checkout](https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html): `home.html`

### Payment & Fulfillment

- [VietQR Payment](https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html): `home.html`
- [Payment Demo](https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html): `home.html`
- [Electronic Invoice](https://github.com/quan2451220004-sudo/24ct1_congnghephanmem/blob/main/home.html): `home.html`

### Other components

- **Customer**
- **Banking App**

## Connections

- Customer → Page Entry: opens (evidence: `README.md`)
- Page Entry → Coffee Catalog: loads page (evidence: `README.md`)
- Customer → Coffee Catalog: browses (evidence: `README.md`)
- Coffee Catalog → Sensory Profiles: shows profiles (evidence: `README.md`)
- Customer → Product Comparison: selects beans (evidence: `README.md`)
- Sensory Profiles → Product Comparison: compares data (evidence: `README.md`)
- Customer → Shopping Cart: adds products (evidence: `README.md`)
- Shopping Cart → Checkout: starts order (evidence: `README.md`)
- Checkout → Account Access: requires login (evidence: `README.md`)
- Account Access → Browser Accounts: stores accounts (evidence: `README.md`)
- Account Access → Delivery Details: continues after login (evidence: `README.md`)
- Delivery Details → Checkout: provides delivery details (evidence: `README.md`)
- Checkout → VietQR Payment: creates payment QR (evidence: `README.md`)
- Customer → VietQR Payment: scans QR (evidence: `README.md`)
- VietQR Payment → Banking App: prefills transfer (evidence: `README.md`)
- Customer → Payment Demo: simulates payment (evidence: `README.md`)
- Payment Demo → Electronic Invoice: generates invoice (evidence: `README.md`)
