# az-dep/az-vacation-booking architecture

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

- Interactive diagram: https://gitdiagram.com/az-dep/az-vacation-booking
- Repository: https://github.com/az-dep/az-vacation-booking

## Overview

This is a browser-based AZ vacation-booking application, with a Google Apps Script backend suggested by the frontend's `callGasApi` usage. The visible workflow is employee login, booking-calendar retrieval and slot selection, followed by booking confirmation; the frontend also exposes admin booking history and spreadsheet export. Only partial `app.js` excerpts are available and the README is empty, so backend behavior and several UI details cannot be verified; the graph omits those uncertain links.

Main entry points: [`app.html`](https://github.com/az-dep/az-vacation-booking/blob/main/app.html) (Booking interface), [`app.js`](https://github.com/az-dep/az-vacation-booking/blob/main/app.js) (App controller), [`style.css`](https://github.com/az-dep/az-vacation-booking/blob/main/style.css) (Interface styles), [`Code.gs`](https://github.com/az-dep/az-vacation-booking/blob/main/Code.gs) (Apps Script backend)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Booking interface"]
  node_app["App controller<br/>[app.js]"]
  node_booking_ui["Booking interface<br/>[app.html]"]
  node_styles["Interface styles<br/>[style.css]"]
end

subgraph group_server["Booking backend"]
  node_gas["Apps Script backend<br/>[Code.gs]"]
end

node_employee(("Employee"))

node_employee -.->|"uses"| node_booking_ui
node_booking_ui -.->|"loads controller"| node_app
node_booking_ui -.->|"uses styles"| node_styles
node_app -.->|"calls API"| node_gas

click node_app "https://github.com/az-dep/az-vacation-booking/blob/main/app.js"
click node_booking_ui "https://github.com/az-dep/az-vacation-booking/blob/main/app.html"
click node_styles "https://github.com/az-dep/az-vacation-booking/blob/main/style.css"
click node_gas "https://github.com/az-dep/az-vacation-booking/blob/main/Code.gs"

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_app,node_booking_ui,node_styles toneBlue
class node_gas toneAmber
class node_employee toneIndigo
```

## Components

### Booking interface

- [App controller](https://github.com/az-dep/az-vacation-booking/blob/main/app.js): `app.js`
- [Booking interface](https://github.com/az-dep/az-vacation-booking/blob/main/app.html): `app.html`
- [Interface styles](https://github.com/az-dep/az-vacation-booking/blob/main/style.css): `style.css`

### Booking backend

- [Apps Script backend](https://github.com/az-dep/az-vacation-booking/blob/main/Code.gs): `Code.gs`

### Other components

- **Employee**

## Connections

- Employee → Booking interface: uses
- Booking interface → App controller: loads controller
- Booking interface → Interface styles: uses styles
- App controller → Apps Script backend: calls API
