# guri1106/my-restaruant-website architecture

> Architecture diagram of the GitHub repository guri1106/my-restaruant-website, 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/my-restaruant-website
- Repository: https://github.com/guri1106/my-restaruant-website

## Overview

Bite Bistro is a restaurant website with online ordering, table reservations, customer confirmations, and a manager dashboard. Customers browse the menu, add dishes to a cart, submit an order, and receive an order receipt; or submit a booking and receive a reservation ticket. The backend accepts orders and reservations, stores records, and can email notifications. The README also describes WhatsApp/SMS dispatch, gallery and restaurant-information pages, and the admin view. The admin and some page wiring are documented but unsampled, so those links rely on README statements.

Main entry points: [`server.js`](https://github.com/guri1106/my-restaruant-website/blob/main/server.js) (Express API), [`js/backend-client.js`](https://github.com/guri1106/my-restaruant-website/blob/main/js/backend-client.js) (Backend Client), [`js/cart.js`](https://github.com/guri1106/my-restaruant-website/blob/main/js/cart.js) (Cart & Checkout), [`js/main.js`](https://github.com/guri1106/my-restaruant-website/blob/main/js/main.js) (Booking Form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer Experience"]
  node_home["Restaurant Home<br/>[index.html]"]
  node_menu["Food Menu<br/>[menu.html]"]
  node_catalog["Menu Catalog<br/>[menu.js]"]
  node_cart["Cart &amp; Checkout<br/>[cart.js]"]
  node_order_receipt["Order Receipt<br/>[cart.js]"]
  node_gallery["Photo Gallery<br/>[gallery.js]"]
  node_about["Restaurant Story<br/>[about.html]"]
  node_contact["Contact Page<br/>[contact.html]"]
end

subgraph group_booking["Reservations"]
  node_reservations_page["Booking Page<br/>[reservations.html]"]
  node_reservation_form["Booking Form<br/>[main.js]"]
  node_reservation_app["Booking Experience<br/>[reservation.js]"]
  node_reservation_ticket["Booking Ticket<br/>[main.js]"]
end

subgraph group_backend["Order Backend"]
  node_backend_client["Backend Client<br/>[backend-client.js]"]
  node_server["Express API<br/>[server.js]"]
  node_orders_store[("Order Records<br/>[orders.json]")]
  node_reservations_store[("Booking Records<br/>[reservations.json]")]
  node_email_service["Email Service"]
  node_messaging["WhatsApp &amp; SMS"]
end

subgraph group_staff["Staff Operations"]
  node_admin["Manager Dashboard<br/>[admin.html]"]
end

node_visitor(("Customer"))

node_visitor -->|"visits"| node_home
node_visitor -->|"browses"| node_menu
node_visitor -->|"books through"| node_reservations_page
node_menu -->|"renders"| node_catalog
node_catalog -->|"adds dishes"| node_cart
node_cart -->|"submits order"| node_backend_client
node_backend_client -->|"posts orders"| node_server
node_server -->|"persists orders"| node_orders_store
node_cart -->|"renders receipt"| node_order_receipt
node_reservations_page -->|"hosts form"| node_reservation_form
node_reservation_form -->|"submits booking"| node_backend_client
node_backend_client -->|"posts bookings"| node_server
node_server -->|"persists bookings"| node_reservations_store
node_reservation_form -->|"shows confirmation"| node_reservation_ticket
node_reservation_app -.->|"updates summary"| node_reservations_page
node_server -->|"sends email"| node_email_service
node_backend_client -->|"creates dispatch links"| node_messaging
node_admin -->|"loads records"| node_server
node_visitor -->|"reads story"| node_about
node_about -.->|"shows gallery"| node_gallery
node_visitor -->|"views contact"| node_contact

click node_home "https://github.com/guri1106/my-restaruant-website/blob/main/index.html"
click node_menu "https://github.com/guri1106/my-restaruant-website/blob/main/menu.html"
click node_catalog "https://github.com/guri1106/my-restaruant-website/blob/main/js/menu.js"
click node_cart "https://github.com/guri1106/my-restaruant-website/blob/main/js/cart.js"
click node_order_receipt "https://github.com/guri1106/my-restaruant-website/blob/main/js/cart.js"
click node_gallery "https://github.com/guri1106/my-restaruant-website/blob/main/js/gallery.js"
click node_about "https://github.com/guri1106/my-restaruant-website/blob/main/about.html"
click node_contact "https://github.com/guri1106/my-restaruant-website/blob/main/contact.html"
click node_reservations_page "https://github.com/guri1106/my-restaruant-website/blob/main/reservations.html"
click node_reservation_form "https://github.com/guri1106/my-restaruant-website/blob/main/js/main.js"
click node_reservation_app "https://github.com/guri1106/my-restaruant-website/blob/main/js/reservation.js"
click node_reservation_ticket "https://github.com/guri1106/my-restaruant-website/blob/main/js/main.js"
click node_backend_client "https://github.com/guri1106/my-restaruant-website/blob/main/js/backend-client.js"
click node_server "https://github.com/guri1106/my-restaruant-website/blob/main/server.js"
click node_orders_store "https://github.com/guri1106/my-restaruant-website/blob/main/data/orders.json"
click node_reservations_store "https://github.com/guri1106/my-restaruant-website/blob/main/data/reservations.json"
click node_admin "https://github.com/guri1106/my-restaruant-website/blob/main/admin.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_home,node_menu,node_catalog,node_cart,node_order_receipt,node_gallery,node_about,node_contact toneBlue
class node_reservations_page,node_reservation_form,node_reservation_app,node_reservation_ticket toneAmber
class node_backend_client,node_server,node_orders_store,node_reservations_store,node_email_service,node_messaging toneMint
class node_admin toneRose
class node_visitor toneIndigo
```

## Components

### Customer Experience

- [Restaurant Home](https://github.com/guri1106/my-restaruant-website/blob/main/index.html): `index.html`
- [Food Menu](https://github.com/guri1106/my-restaruant-website/blob/main/menu.html): `menu.html`
- [Menu Catalog](https://github.com/guri1106/my-restaruant-website/blob/main/js/menu.js): `js/menu.js`
- [Cart & Checkout](https://github.com/guri1106/my-restaruant-website/blob/main/js/cart.js): `js/cart.js`
- [Order Receipt](https://github.com/guri1106/my-restaruant-website/blob/main/js/cart.js): `js/cart.js`
- [Photo Gallery](https://github.com/guri1106/my-restaruant-website/blob/main/js/gallery.js): `js/gallery.js`
- [Restaurant Story](https://github.com/guri1106/my-restaruant-website/blob/main/about.html): `about.html`
- [Contact Page](https://github.com/guri1106/my-restaruant-website/blob/main/contact.html): `contact.html`

### Reservations

- [Booking Page](https://github.com/guri1106/my-restaruant-website/blob/main/reservations.html): `reservations.html`
- [Booking Form](https://github.com/guri1106/my-restaruant-website/blob/main/js/main.js): `js/main.js`
- [Booking Experience](https://github.com/guri1106/my-restaruant-website/blob/main/js/reservation.js): `js/reservation.js`
- [Booking Ticket](https://github.com/guri1106/my-restaruant-website/blob/main/js/main.js): `js/main.js`

### Order Backend

- [Backend Client](https://github.com/guri1106/my-restaruant-website/blob/main/js/backend-client.js): `js/backend-client.js`
- [Express API](https://github.com/guri1106/my-restaruant-website/blob/main/server.js): `server.js`
- [Order Records](https://github.com/guri1106/my-restaruant-website/blob/main/data/orders.json): `data/orders.json`
- [Booking Records](https://github.com/guri1106/my-restaruant-website/blob/main/data/reservations.json): `data/reservations.json`
- **Email Service**
- **WhatsApp & SMS**

### Staff Operations

- [Manager Dashboard](https://github.com/guri1106/my-restaruant-website/blob/main/admin.html): `admin.html`

### Other components

- **Customer**

## Connections

- Customer → Restaurant Home: visits (evidence: `README.md`)
- Customer → Food Menu: browses (evidence: `README.md`)
- Customer → Booking Page: books through (evidence: `README.md`)
- Food Menu → Menu Catalog: renders (evidence: `README.md`)
- Menu Catalog → Cart & Checkout: adds dishes (evidence: `js/menu.js`)
- Cart & Checkout → Backend Client: submits order (evidence: `js/cart.js`)
- Backend Client → Express API: posts orders (evidence: `js/backend-client.js`)
- Express API → Order Records: persists orders (evidence: `README.md`)
- Cart & Checkout → Order Receipt: renders receipt (evidence: `js/cart.js`)
- Booking Page → Booking Form: hosts form (evidence: `README.md`)
- Booking Form → Backend Client: submits booking (evidence: `js/main.js`)
- Backend Client → Express API: posts bookings (evidence: `js/backend-client.js`)
- Express API → Booking Records: persists bookings (evidence: `README.md`)
- Booking Form → Booking Ticket: shows confirmation (evidence: `js/main.js`)
- Booking Experience → Booking Page: updates summary
- Express API → Email Service: sends email (evidence: `README.md`)
- Backend Client → WhatsApp & SMS: creates dispatch links (evidence: `js/backend-client.js`)
- Manager Dashboard → Express API: loads records (evidence: `README.md`)
- Customer → Restaurant Story: reads story (evidence: `README.md`)
- Restaurant Story → Photo Gallery: shows gallery
- Customer → Contact Page: views contact (evidence: `README.md`)
