# chandan-work07/cloud_kitchen architecture

> Architecture diagram of the GitHub repository chandan-work07/cloud_kitchen, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chandan-work07/cloud_kitchen
- Repository: https://github.com/chandan-work07/cloud_kitchen

## Overview

This is a browser-based restaurant menu and ordering site. Visitors browse or filter menu items, add selections to a cart, adjust quantities, and can send an order through WhatsApp; a separate contact form also opens a WhatsApp message. The sampled scripts show the menu, cart, contact, and general UI behavior. The HTML was not sampled, and some menu event-handler code is omitted, so the menu-to-cart connection is shown as unverified rather than asserted.

Main entry points: [`js/menu.js`](https://github.com/chandan-work07/cloud_kitchen/blob/main/js/menu.js) (Menu display), [`js/cart.js`](https://github.com/chandan-work07/cloud_kitchen/blob/main/js/cart.js) (Cart management), [`js/script.js`](https://github.com/chandan-work07/cloud_kitchen/blob/main/js/script.js) (Contact form), [`index.html`](https://github.com/chandan-work07/cloud_kitchen/blob/main/index.html) (Restaurant site)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ordering["Menu and ordering"]
  node_menu["Menu display<br/>[menu.js]"]
  node_filter["Search and categories<br/>[menu.js]"]
  node_cart["Cart management<br/>[cart.js]"]
end

subgraph group_contact["Contact"]
  node_contactform["Contact form<br/>[script.js]"]
end

subgraph group_ui["Page controls"]
  node_site["Restaurant site<br/>[index.html]"]
  node_controls["Page controls<br/>[script.js]"]
end

node_visitor(("Visitor"))
node_wa{{"WhatsApp"}}

node_visitor -->|"uses"| node_site
node_visitor -->|"browses"| node_menu
node_filter -->|"renders results"| node_menu
node_menu -.->|"adds selected item"| node_cart
node_cart -->|"opens checkout"| node_wa
node_contactform -->|"opens message"| node_wa
node_visitor -->|"submits details"| node_contactform
node_visitor -->|"uses controls"| node_controls

click node_site "https://github.com/chandan-work07/cloud_kitchen/blob/main/index.html"
click node_menu "https://github.com/chandan-work07/cloud_kitchen/blob/main/js/menu.js"
click node_filter "https://github.com/chandan-work07/cloud_kitchen/blob/main/js/menu.js"
click node_cart "https://github.com/chandan-work07/cloud_kitchen/blob/main/js/cart.js"
click node_contactform "https://github.com/chandan-work07/cloud_kitchen/blob/main/js/script.js"
click node_controls "https://github.com/chandan-work07/cloud_kitchen/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_menu,node_filter,node_cart toneBlue
class node_contactform toneAmber
class node_site,node_controls toneMint
class node_visitor,node_wa toneIndigo
```

## Components

### Menu and ordering

- [Menu display](https://github.com/chandan-work07/cloud_kitchen/blob/main/js/menu.js): `js/menu.js`
- [Search and categories](https://github.com/chandan-work07/cloud_kitchen/blob/main/js/menu.js): `js/menu.js`
- [Cart management](https://github.com/chandan-work07/cloud_kitchen/blob/main/js/cart.js): `js/cart.js`

### Contact

- [Contact form](https://github.com/chandan-work07/cloud_kitchen/blob/main/js/script.js): `js/script.js`

### Page controls

- [Restaurant site](https://github.com/chandan-work07/cloud_kitchen/blob/main/index.html): `index.html`
- [Page controls](https://github.com/chandan-work07/cloud_kitchen/blob/main/js/script.js): `js/script.js`

### Other components

- **Visitor**
- **WhatsApp**

## Connections

- Visitor → Restaurant site: uses
- Visitor → Menu display: browses (evidence: `js/menu.js`)
- Search and categories → Menu display: renders results (evidence: `js/menu.js`)
- Menu display → Cart management: adds selected item
- Cart management → WhatsApp: opens checkout (evidence: `js/cart.js`)
- Contact form → WhatsApp: opens message (evidence: `js/script.js`)
- Visitor → Contact form: submits details (evidence: `js/script.js`)
- Visitor → Page controls: uses controls (evidence: `js/script.js`)
