# guri1106/mu-project architecture

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

- Interactive diagram: https://gitdiagram.com/guri1106/mu-project
- Repository: https://github.com/guri1106/mu-project

## Overview

Sakura Sushi is a browser-based restaurant storefront. Its primary workflow is browsing and filtering the menu, adding items to a local cart, reviewing totals, submitting a demo checkout, and viewing confirmation. The README also identifies contact messaging as a demo capability. Source evidence is limited to the README and the excerpted JavaScript; HTML pages are present in the tree but were not sampled, so page-to-script wiring is not asserted.

Main entry points: [`js/script.js`](https://github.com/guri1106/mu-project/blob/main/js/script.js) (Cart management), [`menu.html`](https://github.com/guri1106/mu-project/blob/main/menu.html) (Menu page), [`checkout.html`](https://github.com/guri1106/mu-project/blob/main/checkout.html) (Checkout page), [`order-success.html`](https://github.com/guri1106/mu-project/blob/main/order-success.html) (Confirmation page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_home["Home page<br/>[index.html]"]
  node_menu["Menu page<br/>[menu.html]"]
  node_catalog["Product catalog<br/>[script.js]"]
  node_about["About page<br/>[about.html]"]
end

subgraph group_ordering["Ordering"]
  node_cartpage["Cart page<br/>[cart.html]"]
  node_cartlogic["Cart management<br/>[script.js]"]
  node_browserstore[("Browser storage")]
  node_checkoutpage["Checkout page<br/>[checkout.html]"]
  node_checkoutlogic["Checkout handling<br/>[script.js]"]
end

subgraph group_completion["Order completion"]
  node_successpage["Confirmation page<br/>[order-success.html]"]
  node_confirmation["Order confirmation<br/>[script.js]"]
end

subgraph group_engagement["Contact"]
  node_contactpage["Contact page<br/>[contact.html]"]
  node_contactlogic["Contact handling<br/>[script.js]"]
end

node_customer(("Customer"))

node_customer -->|"visits"| node_home
node_customer -->|"browses"| node_menu
node_menu -->|"renders products"| node_catalog
node_catalog -->|"adds items"| node_cartlogic
node_cartlogic -->|"reads and writes cart"| node_browserstore
node_cartpage -.->|"renders cart"| node_cartlogic
node_cartlogic -->|"links checkout"| node_checkoutpage
node_checkoutpage -.->|"submits form"| node_checkoutlogic
node_checkoutlogic -->|"saves order"| node_browserstore
node_checkoutlogic -->|"redirects"| node_successpage
node_successpage -.->|"shows order"| node_confirmation
node_customer -.->|"sends inquiry"| node_contactpage
node_contactpage -.->|"submits form"| node_contactlogic
node_customer -.->|"views information"| node_about

click node_home "https://github.com/guri1106/mu-project/blob/main/index.html"
click node_menu "https://github.com/guri1106/mu-project/blob/main/menu.html"
click node_catalog "https://github.com/guri1106/mu-project/blob/main/js/script.js"
click node_cartpage "https://github.com/guri1106/mu-project/blob/main/cart.html"
click node_cartlogic "https://github.com/guri1106/mu-project/blob/main/js/script.js"
click node_checkoutpage "https://github.com/guri1106/mu-project/blob/main/checkout.html"
click node_checkoutlogic "https://github.com/guri1106/mu-project/blob/main/js/script.js"
click node_successpage "https://github.com/guri1106/mu-project/blob/main/order-success.html"
click node_confirmation "https://github.com/guri1106/mu-project/blob/main/js/script.js"
click node_about "https://github.com/guri1106/mu-project/blob/main/about.html"
click node_contactpage "https://github.com/guri1106/mu-project/blob/main/contact.html"
click node_contactlogic "https://github.com/guri1106/mu-project/blob/main/js/script.js"

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_home,node_menu,node_catalog,node_about toneBlue
class node_cartpage,node_cartlogic,node_browserstore,node_checkoutpage,node_checkoutlogic toneAmber
class node_successpage,node_confirmation toneMint
class node_contactpage,node_contactlogic toneRose
class node_customer toneIndigo
```

## Components

### Storefront

- [Home page](https://github.com/guri1106/mu-project/blob/main/index.html): `index.html`
- [Menu page](https://github.com/guri1106/mu-project/blob/main/menu.html): `menu.html`
- [Product catalog](https://github.com/guri1106/mu-project/blob/main/js/script.js): `js/script.js`
- [About page](https://github.com/guri1106/mu-project/blob/main/about.html): `about.html`

### Ordering

- [Cart page](https://github.com/guri1106/mu-project/blob/main/cart.html): `cart.html`
- [Cart management](https://github.com/guri1106/mu-project/blob/main/js/script.js): `js/script.js`
- **Browser storage**
- [Checkout page](https://github.com/guri1106/mu-project/blob/main/checkout.html): `checkout.html`
- [Checkout handling](https://github.com/guri1106/mu-project/blob/main/js/script.js): `js/script.js`

### Order completion

- [Confirmation page](https://github.com/guri1106/mu-project/blob/main/order-success.html): `order-success.html`
- [Order confirmation](https://github.com/guri1106/mu-project/blob/main/js/script.js): `js/script.js`

### Contact

- [Contact page](https://github.com/guri1106/mu-project/blob/main/contact.html): `contact.html`
- [Contact handling](https://github.com/guri1106/mu-project/blob/main/js/script.js): `js/script.js`

### Other components

- **Customer**

## Connections

- Customer → Home page: visits (evidence: `README.md`)
- Customer → Menu page: browses (evidence: `README.md`)
- Menu page → Product catalog: renders products (evidence: `js/script.js`)
- Product catalog → Cart management: adds items (evidence: `js/script.js`)
- Cart management → Browser storage: reads and writes cart (evidence: `js/script.js`)
- Cart page → Cart management: renders cart
- Cart management → Checkout page: links checkout (evidence: `js/script.js`)
- Checkout page → Checkout handling: submits form
- Checkout handling → Browser storage: saves order (evidence: `js/script.js`)
- Checkout handling → Confirmation page: redirects (evidence: `js/script.js`)
- Confirmation page → Order confirmation: shows order
- Customer → Contact page: sends inquiry
- Contact page → Contact handling: submits form
- Customer → About page: views information
