# dau-trankhanhdong/trankhanhdong24ct1__cnpm architecture

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

- Interactive diagram: https://gitdiagram.com/dau-trankhanhdong/trankhanhdong24ct1__cnpm
- Repository: https://github.com/dau-trankhanhdong/trankhanhdong24ct1__cnpm

## Overview

GiaDụngSmart is a multi-role home-appliance storefront. The documented customer workflow runs from routed shopping and checkout through order creation, then VietQR payment confirmation; seller and admin interfaces cover their separate management tasks. The README also describes authentication, catalog and inventory, cart and vouchers, order handling, and COD and card payment options. The supplied file tree contains no application source, so implementation paths and unverified connections are omitted; edges shown are documented in the README.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_router["Route handling"]
end

subgraph group_state["Shared state"]
  node_auth["Authentication and roles"]
  node_products["Catalog and inventory"]
  node_cart["Cart and vouchers"]
  node_orders["Orders and payment state"]
end

subgraph group_interfaces["Role interfaces"]
  node_customer["Customer shopping and checkout"]
  node_seller["Seller management"]
  node_admin["Admin management"]
  node_authpages["Sign-in and registration"]
end

subgraph group_payments["Payment options"]
  node_qrcomponent["VietQR payment panel"]
  node_cod["Cash on delivery"]
  node_vietqr["VietQR MBBank"]
  node_cards["Card payment"]
end

node_user(("Customer, seller, admin"))
node_bank["Banking app"]

node_user -->|"uses"| node_router
node_router -->|"routes to"| node_auth
node_auth -->|"role-gates"| node_products
node_products -->|"feeds catalog"| node_cart
node_cart -->|"checkout state"| node_orders
node_orders -->|"serves"| node_customer
node_orders -->|"serves"| node_seller
node_orders -->|"serves"| node_admin
node_router -->|"routes to"| node_customer
node_router -->|"routes to"| node_seller
node_router -->|"routes to"| node_admin
node_router -->|"routes to"| node_authpages
node_customer -->|"creates order"| node_orders
node_customer -->|"opens preview"| node_qrcomponent
node_customer -->|"selects payment"| node_cod
node_customer -->|"selects payment"| node_vietqr
node_customer -->|"selects payment"| node_cards
node_qrcomponent -->|"confirms payment"| node_orders
node_user -->|"scans QR"| node_bank
node_bank -->|"prefills transfer"| node_user

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_router toneBlue
class node_auth,node_products,node_cart,node_orders toneAmber
class node_customer,node_seller,node_admin,node_authpages toneMint
class node_qrcomponent,node_cod,node_vietqr,node_cards toneRose
class node_user,node_bank toneIndigo
```

## Components

### App navigation

- **Route handling**

### Shared state

- **Authentication and roles**
- **Catalog and inventory**
- **Cart and vouchers**
- **Orders and payment state**

### Role interfaces

- **Customer shopping and checkout**
- **Seller management**
- **Admin management**
- **Sign-in and registration**

### Payment options

- **VietQR payment panel**
- **Cash on delivery**
- **VietQR MBBank**
- **Card payment**

### Other components

- **Customer, seller, admin**
- **Banking app**

## Connections

- Customer, seller, admin → Route handling: uses (evidence: `README.md`)
- Route handling → Authentication and roles: routes to (evidence: `README.md`)
- Authentication and roles → Catalog and inventory: role-gates (evidence: `README.md`)
- Catalog and inventory → Cart and vouchers: feeds catalog (evidence: `README.md`)
- Cart and vouchers → Orders and payment state: checkout state (evidence: `README.md`)
- Orders and payment state → Customer shopping and checkout: serves (evidence: `README.md`)
- Orders and payment state → Seller management: serves (evidence: `README.md`)
- Orders and payment state → Admin management: serves (evidence: `README.md`)
- Route handling → Customer shopping and checkout: routes to (evidence: `README.md`)
- Route handling → Seller management: routes to (evidence: `README.md`)
- Route handling → Admin management: routes to (evidence: `README.md`)
- Route handling → Sign-in and registration: routes to (evidence: `README.md`)
- Customer shopping and checkout → Orders and payment state: creates order (evidence: `README.md`)
- Customer shopping and checkout → VietQR payment panel: opens preview (evidence: `README.md`)
- Customer shopping and checkout → Cash on delivery: selects payment (evidence: `README.md`)
- Customer shopping and checkout → VietQR MBBank: selects payment (evidence: `README.md`)
- Customer shopping and checkout → Card payment: selects payment (evidence: `README.md`)
- VietQR payment panel → Orders and payment state: confirms payment (evidence: `README.md`)
- Customer, seller, admin → Banking app: scans QR (evidence: `README.md`)
- Banking app → Customer, seller, admin: prefills transfer (evidence: `README.md`)
