# truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc architecture

> Architecture diagram of the GitHub repository truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc, 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/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc
- Repository: https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc

## Overview

The repository contains a browser-based beauty-store app in root `script.js`, with product browsing, cart and checkout, order management, and local login/registration. A separate nested Vite starter includes a demo counter. The README gives no additional product detail; edges below are limited to relationships visible in the supplied excerpts.

Main entry points: [`script.js`](https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js) (Checkout), [`New folder/24CT1-Truong_Thi_Thanh_Truc/src/main.ts`](https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/New%20folder/24CT1-Truong_Thi_Thanh_Truc/src/main.ts) (Starter App), [`New folder/24CT1-Truong_Thi_Thanh_Truc/src/counter.ts`](https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/New%20folder/24CT1-Truong_Thi_Thanh_Truc/src/counter.ts) (Demo Counter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_store["Beauty Store"]
  node_store_runtime["Store Runtime<br/>[script.js]"]
  node_catalog["Product Catalog<br/>[script.js]"]
end

subgraph group_commerce["Shopping and Orders"]
  node_cart["Shopping Cart<br/>[script.js]"]
  node_checkout["Checkout<br/>[script.js]"]
  node_orders["Order Management<br/>[script.js]"]
  node_browser_storage[("Browser Storage")]
end

subgraph group_accounts["Account Access"]
  node_accounts_ui["Account UI<br/>[script.js]"]
  node_auth["Login and Signup<br/>[script.js]"]
end

subgraph group_starter["Nested Starter"]
  node_starter_app["Starter App<br/>[main.ts]"]
  node_counter["Demo Counter<br/>[counter.ts]"]
end

node_shopper(("Shopper"))

node_shopper -->|"uses"| node_store_runtime
node_store_runtime -->|"renders"| node_catalog
node_shopper -->|"manages"| node_cart
node_cart -->|"saves cart"| node_browser_storage
node_shopper -->|"submits order"| node_checkout
node_checkout -->|"saves order"| node_browser_storage
node_checkout -->|"refreshes"| node_orders
node_shopper -->|"opens"| node_accounts_ui
node_starter_app -->|"sets up"| node_counter

click node_store_runtime "https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js"
click node_catalog "https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js"
click node_cart "https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js"
click node_checkout "https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js"
click node_orders "https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js"
click node_accounts_ui "https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js"
click node_auth "https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js"
click node_starter_app "https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/New%20folder/24CT1-Truong_Thi_Thanh_Truc/src/main.ts"
click node_counter "https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/New%20folder/24CT1-Truong_Thi_Thanh_Truc/src/counter.ts"

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_store_runtime,node_catalog toneBlue
class node_cart,node_checkout,node_orders,node_browser_storage toneAmber
class node_accounts_ui,node_auth toneMint
class node_starter_app,node_counter toneRose
class node_shopper toneIndigo
```

## Components

### Beauty Store

- [Store Runtime](https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js): `script.js`
- [Product Catalog](https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js): `script.js`

### Shopping and Orders

- [Shopping Cart](https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js): `script.js`
- [Checkout](https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js): `script.js`
- [Order Management](https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js): `script.js`
- **Browser Storage**

### Account Access

- [Account UI](https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js): `script.js`
- [Login and Signup](https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/script.js): `script.js`

### Nested Starter

- [Starter App](https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/New%20folder/24CT1-Truong_Thi_Thanh_Truc/src/main.ts): `New folder/24CT1-Truong_Thi_Thanh_Truc/src/main.ts`
- [Demo Counter](https://github.com/truongthanhtruc/cong_nghe_phan_mem_24ct1_thanh_truc/blob/main/New%20folder/24CT1-Truong_Thi_Thanh_Truc/src/counter.ts): `New folder/24CT1-Truong_Thi_Thanh_Truc/src/counter.ts`

### Other components

- **Shopper**

## Connections

- Shopper → Store Runtime: uses (evidence: `script.js`)
- Store Runtime → Product Catalog: renders (evidence: `script.js`)
- Shopper → Shopping Cart: manages (evidence: `script.js`)
- Shopping Cart → Browser Storage: saves cart (evidence: `script.js`)
- Shopper → Checkout: submits order (evidence: `script.js`)
- Checkout → Browser Storage: saves order (evidence: `script.js`)
- Checkout → Order Management: refreshes (evidence: `script.js`)
- Shopper → Account UI: opens (evidence: `script.js`)
- Starter App → Demo Counter: sets up (evidence: `New folder/24CT1-Truong_Thi_Thanh_Truc/src/main.ts`)
