# khushi-joshi-05/food-ordering-website architecture

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

- Interactive diagram: https://gitdiagram.com/khushi-joshi-05/food-ordering-website
- Repository: https://github.com/khushi-joshi-05/food-ordering-website

## Overview

Foodie is a static, browser-based food ordering website. Customers browse categories, add meals to a locally stored cart, choose online or pickup checkout, and can book a table; the repository does not show a backend order or payment service. The graph preserves documented ordering, menu, booking, contact, and app-information capabilities, plus sampled authentication, address, and feedback behavior. Edges are limited to relationships explicit in the README or sampled source; unsampled page wiring is not inferred.

Main entry points: [`Html-files/MenuAPI.js`](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/MenuAPI.js) (Meal Catalog), [`index.html`](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/index.html) (Foodie Website), [`Html-files/cart.js`](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/cart.js) (Cart Management), [`Html-files/address-info.js`](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/address-info.js) (Checkout Choice)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Menu Discovery"]
  node_site["Foodie Website<br/>[index.html]"]
  node_menu["Meal Catalog<br/>[MenuAPI.js]"]
  node_ratings["Menu Ratings<br/>[menuStars.js]"]
end

subgraph group_commerce["Cart and Checkout"]
  node_cart["Cart Management<br/>[cart.js]"]
  node_cart_store[("Browser Cart Storage<br/>[MenuAPI.js]")]
  node_checkout["Checkout Choice<br/>[address-info.js]"]
  node_address["Address Entry<br/>[address-info.js]"]
  node_payment_pages["Payment Options"]
  node_order_tracking["Order Tracking<br/>[ordertracking.html]"]
  node_table_booking["Table Booking<br/>[book-table.html]"]
end

subgraph group_account["Customer Account"]
  node_auth["Sign-in<br/>[auth.js]"]
end

subgraph group_engagement["Customer Engagement"]
  node_contact["Contact Form<br/>[contact-form.js]"]
  node_feedback["Feedback Forms<br/>[FeedbackForm.js]"]
  node_services["Food Services<br/>[services.html]"]
  node_offers["Offers<br/>[offers.html]"]
  node_app_info["App Information<br/>[contact.html]"]
end

node_customer(("Customer"))
node_meal_api["TheMealDB"]
node_firebase["Firebase Auth"]

node_customer -->|"browses"| node_site
node_site -.->|"opens menu"| node_menu
node_menu -->|"fetches meals"| node_meal_api
node_menu -->|"reads and writes"| node_cart_store
node_customer -.->|"manages cart"| node_cart
node_cart -->|"loads and saves"| node_cart_store
node_customer -->|"chooses fulfillment"| node_checkout
node_checkout -->|"shows address"| node_address
node_customer -.->|"selects payment"| node_payment_pages
node_customer -.->|"tracks order"| node_order_tracking
node_customer -->|"books table"| node_table_booking
node_customer -.->|"signs in"| node_auth
node_auth -->|"authenticates"| node_firebase
node_customer -->|"sends inquiry"| node_contact
node_customer -.->|"submits feedback"| node_feedback
node_customer -.->|"rates meals"| node_ratings
node_customer -->|"explores services"| node_services
node_customer -.->|"views offers"| node_offers
node_customer -->|"views app details"| node_app_info

click node_site "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/index.html"
click node_menu "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/MenuAPI.js"
click node_ratings "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/menuStars.js"
click node_cart "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/cart.js"
click node_cart_store "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/MenuAPI.js"
click node_checkout "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/address-info.js"
click node_address "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/address-info.js"
click node_payment_pages "https://github.com/khushi-joshi-05/food-ordering-website/tree/main/Html-files/payment"
click node_order_tracking "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/ordertracking.html"
click node_table_booking "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/book-table.html"
click node_auth "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/auth.js"
click node_contact "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/contact-form.js"
click node_feedback "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/FeedbackForm.js"
click node_services "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/services.html"
click node_offers "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/offers.html"
click node_app_info "https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/contact.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_site,node_menu,node_ratings toneBlue
class node_cart,node_cart_store,node_checkout,node_address,node_payment_pages,node_order_tracking,node_table_booking toneAmber
class node_auth toneMint
class node_contact,node_feedback,node_services,node_offers,node_app_info toneRose
class node_customer,node_meal_api,node_firebase toneIndigo
```

## Components

### Menu Discovery

- [Foodie Website](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/index.html): `index.html`
- [Meal Catalog](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/MenuAPI.js): `Html-files/MenuAPI.js`
- [Menu Ratings](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/menuStars.js): `Html-files/menuStars.js`

### Cart and Checkout

- [Cart Management](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/cart.js): `Html-files/cart.js`
- [Browser Cart Storage](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/MenuAPI.js): `Html-files/MenuAPI.js`
- [Checkout Choice](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/address-info.js): `Html-files/address-info.js`
- [Address Entry](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/address-info.js): `Html-files/address-info.js`
- [Payment Options](https://github.com/khushi-joshi-05/food-ordering-website/tree/main/Html-files/payment): `Html-files/payment`
- [Order Tracking](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/ordertracking.html): `Html-files/ordertracking.html`
- [Table Booking](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/book-table.html): `Html-files/book-table.html`

### Customer Account

- [Sign-in](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/auth.js): `Html-files/auth.js`

### Customer Engagement

- [Contact Form](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/contact-form.js): `contact-form.js`
- [Feedback Forms](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/FeedbackForm.js): `Html-files/FeedbackForm.js`
- [Food Services](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/services.html): `Html-files/services.html`
- [Offers](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/offers.html): `Html-files/offers.html`
- [App Information](https://github.com/khushi-joshi-05/food-ordering-website/blob/main/Html-files/contact.html): `Html-files/contact.html`

### Other components

- **Customer**
- **TheMealDB**
- **Firebase Auth**

## Connections

- Customer → Foodie Website: browses (evidence: `README.md`)
- Foodie Website → Meal Catalog: opens menu
- Meal Catalog → TheMealDB: fetches meals (evidence: `Html-files/MenuAPI.js`)
- Meal Catalog → Browser Cart Storage: reads and writes (evidence: `Html-files/MenuAPI.js`)
- Customer → Cart Management: manages cart
- Cart Management → Browser Cart Storage: loads and saves (evidence: `Html-files/cart.js`)
- Customer → Checkout Choice: chooses fulfillment (evidence: `README.md`)
- Checkout Choice → Address Entry: shows address (evidence: `Html-files/address-info.js`)
- Customer → Payment Options: selects payment
- Customer → Order Tracking: tracks order
- Customer → Table Booking: books table (evidence: `README.md`)
- Customer → Sign-in: signs in
- Sign-in → Firebase Auth: authenticates (evidence: `Html-files/auth.js`)
- Customer → Contact Form: sends inquiry (evidence: `README.md`)
- Customer → Feedback Forms: submits feedback
- Customer → Menu Ratings: rates meals
- Customer → Food Services: explores services (evidence: `README.md`)
- Customer → Offers: views offers
- Customer → App Information: views app details (evidence: `README.md`)
