# jedzzkkkk/bella-vista-oasis-spa architecture

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

- Interactive diagram: https://gitdiagram.com/jedzzkkkk/bella-vista-oasis-spa
- Repository: https://github.com/jedzzkkkk/bella-vista-oasis-spa

## Overview

Bella Vista Oasis Spa is represented by a customer-facing spa site, account sign-in/registration handlers, and a staff dashboard. The customer path reaches a static service and appointment preview: the excerpt explicitly says booking submission is inactive. Login and registration validate credentials/details and use MySQL-backed customer records and sessions. The admin and account pages show operational and appointment-management concepts, but their sampled views contain static examples rather than demonstrated data flows. Relationships are limited to imports, explicit page content, and documented form behavior visible in the excerpts.

Main entry points: [`index.php`](https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/index.php) (Spa landing site), [`customers/Login and Signup/login.html`](https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/customers/Login%20and%20Signup/login.html) (Login and signup pages), [`auth/loginprocess.php`](https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/auth/loginprocess.php) (Login handler), [`auth/signupprocess.php`](https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/auth/signupprocess.php) (Signup handler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer experience"]
  node_spa_site["Spa landing site<br/>[index.php]"]
  node_spa_catalog["Rooms and treatments<br/>[index.php]"]
  node_appointment_preview["Appointment preview<br/>[index.php]"]
  node_customer_account["Customer account<br/>[customerpage.php]"]
end

subgraph group_identity["Customer identity"]
  node_auth_pages["Login and signup pages<br/>[login.html]"]
  node_login_handler["Login handler<br/>[loginprocess.php]"]
  node_signup_handler["Signup handler<br/>[signupprocess.php]"]
end

subgraph group_staff["Staff operations"]
  node_staff_dashboard["Staff dashboard<br/>[admin.php]"]
end

subgraph group_infra["Persistence"]
  node_mysql[("MySQL database<br/>[database.php]")]
end

node_visitor(("Spa visitor"))

node_visitor -->|"visits"| node_spa_site
node_spa_site -->|"presents"| node_spa_catalog
node_spa_site -->|"shows"| node_appointment_preview
node_visitor -->|"opens"| node_auth_pages
node_auth_pages -.->|"submits login"| node_login_handler
node_auth_pages -.->|"submits signup"| node_signup_handler
node_login_handler -->|"queries account"| node_mysql
node_signup_handler -->|"checks and inserts"| node_mysql
node_visitor -->|"views account"| node_customer_account

click node_spa_site "https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/index.php"
click node_spa_catalog "https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/index.php"
click node_appointment_preview "https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/index.php"
click node_customer_account "https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/customers/customerpage.php"
click node_auth_pages "https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/customers/Login%20and%20Signup/login.html"
click node_login_handler "https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/auth/loginprocess.php"
click node_signup_handler "https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/auth/signupprocess.php"
click node_staff_dashboard "https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/admin/admin.php"
click node_mysql "https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/config/database.php"

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_spa_site,node_spa_catalog,node_appointment_preview,node_customer_account toneBlue
class node_auth_pages,node_login_handler,node_signup_handler toneAmber
class node_staff_dashboard toneMint
class node_mysql toneRose
class node_visitor toneIndigo
```

## Components

### Customer experience

- [Spa landing site](https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/index.php): `index.php`
- [Rooms and treatments](https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/index.php): `index.php`
- [Appointment preview](https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/index.php): `index.php`
- [Customer account](https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/customers/customerpage.php): `customers/customerpage.php`

### Customer identity

- [Login and signup pages](https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/customers/Login%20and%20Signup/login.html): `customers/Login and Signup/login.html`
- [Login handler](https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/auth/loginprocess.php): `auth/loginprocess.php`
- [Signup handler](https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/auth/signupprocess.php): `auth/signupprocess.php`

### Staff operations

- [Staff dashboard](https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/admin/admin.php): `admin/admin.php`

### Persistence

- [MySQL database](https://github.com/jedzzkkkk/bella-vista-oasis-spa/blob/main/config/database.php): `config/database.php`

### Other components

- **Spa visitor**

## Connections

- Spa visitor → Spa landing site: visits (evidence: `index.php`)
- Spa landing site → Rooms and treatments: presents (evidence: `index.php`)
- Spa landing site → Appointment preview: shows (evidence: `index.php`)
- Spa visitor → Login and signup pages: opens
- Login and signup pages → Login handler: submits login
- Login and signup pages → Signup handler: submits signup
- Login handler → MySQL database: queries account (evidence: `auth/loginprocess.php`)
- Signup handler → MySQL database: checks and inserts (evidence: `auth/signupprocess.php`)
- Spa visitor → Customer account: views account (evidence: `customers/customerpage.php`)
