# coderyasa089/indias_pride architecture

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

- Interactive diagram: https://gitdiagram.com/coderyasa089/indias_pride
- Repository: https://github.com/coderyasa089/indias_pride

## Overview

India’s Pride is a PHP restaurant website for browsing restaurant information and menu items, making table reservations with an optional food order, and checking order status by booking ID. The principal transaction is handled in booking.php: it records a reservation, optionally looks up menu prices and records an order and its items; order_status.php queries orders associated with a booking. The README also describes contact and restaurant information, though the contact form’s processing is not shown. Edges reflect the excerpts and README; database schema details beyond the shown queries are not inferred.

Main entry points: [`index.php`](https://github.com/coderyasa089/indias_pride/blob/main/index.php) (Home), [`config.php`](https://github.com/coderyasa089/indias_pride/blob/main/config.php) (DB Connection), [`menu.php`](https://github.com/coderyasa089/indias_pride/blob/main/menu.php) (Menu), [`booking.php`](https://github.com/coderyasa089/indias_pride/blob/main/booking.php) (Booking & Order)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_visitor_pages["Visitor Pages"]
  node_home["Home<br/>[index.php]"]
  node_menu["Menu<br/>[menu.php]"]
  node_restaurant_info["Restaurant Info<br/>[about.php]"]
  node_contact["Contact<br/>[contact.php]"]
end

subgraph group_transactions["Reservations &amp; Orders"]
  node_booking_order["Booking &amp; Order<br/>[booking.php]"]
  node_order_status["Order Status<br/>[order_status.php]"]
end

subgraph group_data_access["Database Access"]
  node_db_config["DB Connection<br/>[config.php]"]
  node_restaurant_db[("Restaurant Database")]
end

node_customer(("Customer"))
node_mysql[("MySQL Server")]

node_customer -->|"opens site"| node_home
node_home -->|"links to"| node_menu
node_home -->|"links to"| node_restaurant_info
node_home -->|"links to"| node_contact
node_home -->|"links to"| node_booking_order
node_home -->|"links to"| node_order_status
node_menu -->|"requires"| node_db_config
node_booking_order -->|"requires"| node_db_config
node_order_status -->|"requires"| node_db_config
node_db_config -->|"connects to"| node_mysql
node_menu -->|"reads menu"| node_restaurant_db
node_booking_order -->|"reads prices; writes booking and order"| node_restaurant_db
node_order_status -->|"reads order status"| node_restaurant_db

click node_home "https://github.com/coderyasa089/indias_pride/blob/main/index.php"
click node_menu "https://github.com/coderyasa089/indias_pride/blob/main/menu.php"
click node_restaurant_info "https://github.com/coderyasa089/indias_pride/blob/main/about.php"
click node_contact "https://github.com/coderyasa089/indias_pride/blob/main/contact.php"
click node_booking_order "https://github.com/coderyasa089/indias_pride/blob/main/booking.php"
click node_order_status "https://github.com/coderyasa089/indias_pride/blob/main/order_status.php"
click node_db_config "https://github.com/coderyasa089/indias_pride/blob/main/config.php"
click node_restaurant_db "https://github.com/coderyasa089/indias_pride/blob/main/database/indias_pride_db.sql"

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_restaurant_info,node_contact toneBlue
class node_booking_order,node_order_status,node_mysql toneAmber
class node_db_config,node_restaurant_db toneMint
class node_customer toneIndigo
```

## Components

### Visitor Pages

- [Home](https://github.com/coderyasa089/indias_pride/blob/main/index.php): `index.php`
- [Menu](https://github.com/coderyasa089/indias_pride/blob/main/menu.php): `menu.php`
- [Restaurant Info](https://github.com/coderyasa089/indias_pride/blob/main/about.php): `about.php`
- [Contact](https://github.com/coderyasa089/indias_pride/blob/main/contact.php): `contact.php`

### Reservations & Orders

- [Booking & Order](https://github.com/coderyasa089/indias_pride/blob/main/booking.php): `booking.php`
- [Order Status](https://github.com/coderyasa089/indias_pride/blob/main/order_status.php): `order_status.php`

### Database Access

- [DB Connection](https://github.com/coderyasa089/indias_pride/blob/main/config.php): `config.php`
- [Restaurant Database](https://github.com/coderyasa089/indias_pride/blob/main/database/indias_pride_db.sql): `database/indias_pride_db.sql`

### Other components

- **Customer**
- **MySQL Server**

## Connections

- Customer → Home: opens site (evidence: `README.md`)
- Home → Menu: links to (evidence: `index.php`)
- Home → Restaurant Info: links to (evidence: `index.php`)
- Home → Contact: links to (evidence: `index.php`)
- Home → Booking & Order: links to (evidence: `index.php`)
- Home → Order Status: links to (evidence: `index.php`)
- Menu → DB Connection: requires (evidence: `menu.php`)
- Booking & Order → DB Connection: requires (evidence: `booking.php`)
- Order Status → DB Connection: requires (evidence: `order_status.php`)
- DB Connection → MySQL Server: connects to (evidence: `config.php`)
- Menu → Restaurant Database: reads menu (evidence: `menu.php`)
- Booking & Order → Restaurant Database: reads prices; writes booking and order (evidence: `booking.php`)
- Order Status → Restaurant Database: reads order status (evidence: `order_status.php`)
