# visagan09-creator/german_tech architecture

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

- Interactive diagram: https://gitdiagram.com/visagan09-creator/german_tech
- Repository: https://github.com/visagan09-creator/german_tech

## Overview

This is a small automotive service website with an online booking workflow: visitors browse service pages, submit a booking, and staff can view and refresh bookings. The sampled JavaScript confirms client-side form handling and a POST to the PHP endpoint; PHP validates capacity and persists bookings in MySQL. The page files and other listed capabilities are inferred only from filenames because their contents were not sampled, so their detailed wiring is omitted.

Main entry points: [`backend/config.php`](https://github.com/visagan09-creator/german_tech/blob/main/backend/config.php) (Database connection), [`backend/view_bookings.php`](https://github.com/visagan09-creator/german_tech/blob/main/backend/view_bookings.php) (Booking view), [`backend/submit_booking.php`](https://github.com/visagan09-creator/german_tech/blob/main/backend/submit_booking.php) (Booking submission), [`backend/fetch_bookings.php`](https://github.com/visagan09-creator/german_tech/blob/main/backend/fetch_bookings.php) (Booking feed)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Customer website"]
  node_pages["Site pages"]
  node_interactions["Page interactions<br/>[script.js]"]
  node_media["Tour videos"]
end

subgraph group_booking["Booking workflow"]
  node_booking_form["Booking form"]
  node_form_handler["Form handler<br/>[script.js]"]
  node_submit_endpoint["Booking submission<br/>[submit_booking.php]"]
  node_admin_view["Booking view<br/>[view_bookings.php]"]
  node_fetch_endpoint["Booking feed<br/>[fetch_bookings.php]"]
end

subgraph group_data["Booking data"]
  node_booking_store[("MySQL bookings<br/>[config.php]")]
  node_connection["Database connection<br/>[config.php]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"browses"| node_pages
node_pages -.->|"loads"| node_interactions
node_visitor -.->|"submits"| node_booking_form
node_booking_form -.->|"handles submit"| node_form_handler
node_form_handler -->|"POSTs booking"| node_submit_endpoint
node_submit_endpoint -->|"requires"| node_connection
node_connection -->|"connects"| node_booking_store
node_submit_endpoint -->|"checks and writes"| node_booking_store
node_admin_view -->|"requires"| node_connection
node_admin_view -->|"reads"| node_booking_store
node_admin_view -->|"polls"| node_fetch_endpoint
node_fetch_endpoint -->|"requires"| node_connection
node_fetch_endpoint -->|"reads"| node_booking_store

click node_pages "https://github.com/visagan09-creator/german_tech/tree/main/frontend"
click node_interactions "https://github.com/visagan09-creator/german_tech/blob/main/frontend/script.js"
click node_media "https://github.com/visagan09-creator/german_tech/tree/main/frontend/uploads"
click node_booking_form "https://github.com/visagan09-creator/german_tech/tree/main/frontend"
click node_form_handler "https://github.com/visagan09-creator/german_tech/blob/main/frontend/script.js"
click node_submit_endpoint "https://github.com/visagan09-creator/german_tech/blob/main/backend/submit_booking.php"
click node_booking_store "https://github.com/visagan09-creator/german_tech/blob/main/backend/config.php"
click node_connection "https://github.com/visagan09-creator/german_tech/blob/main/backend/config.php"
click node_admin_view "https://github.com/visagan09-creator/german_tech/blob/main/backend/view_bookings.php"
click node_fetch_endpoint "https://github.com/visagan09-creator/german_tech/blob/main/backend/fetch_bookings.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_pages,node_interactions,node_media toneBlue
class node_booking_form,node_form_handler,node_submit_endpoint,node_admin_view,node_fetch_endpoint toneAmber
class node_booking_store,node_connection toneMint
class node_visitor toneIndigo
```

## Components

### Customer website

- [Site pages](https://github.com/visagan09-creator/german_tech/tree/main/frontend): `frontend`
- [Page interactions](https://github.com/visagan09-creator/german_tech/blob/main/frontend/script.js): `frontend/script.js`
- [Tour videos](https://github.com/visagan09-creator/german_tech/tree/main/frontend/uploads): `frontend/uploads`

### Booking workflow

- [Booking form](https://github.com/visagan09-creator/german_tech/tree/main/frontend): `frontend`
- [Form handler](https://github.com/visagan09-creator/german_tech/blob/main/frontend/script.js): `frontend/script.js`
- [Booking submission](https://github.com/visagan09-creator/german_tech/blob/main/backend/submit_booking.php): `backend/submit_booking.php`
- [Booking view](https://github.com/visagan09-creator/german_tech/blob/main/backend/view_bookings.php): `backend/view_bookings.php`
- [Booking feed](https://github.com/visagan09-creator/german_tech/blob/main/backend/fetch_bookings.php): `backend/fetch_bookings.php`

### Booking data

- [MySQL bookings](https://github.com/visagan09-creator/german_tech/blob/main/backend/config.php): `backend/config.php`
- [Database connection](https://github.com/visagan09-creator/german_tech/blob/main/backend/config.php): `backend/config.php`

### Other components

- **Visitor**

## Connections

- Visitor → Site pages: browses
- Site pages → Page interactions: loads
- Visitor → Booking form: submits
- Booking form → Form handler: handles submit
- Form handler → Booking submission: POSTs booking (evidence: `frontend/script.js`)
- Booking submission → Database connection: requires (evidence: `backend/submit_booking.php`)
- Database connection → MySQL bookings: connects (evidence: `backend/config.php`)
- Booking submission → MySQL bookings: checks and writes (evidence: `backend/submit_booking.php`)
- Booking view → Database connection: requires (evidence: `backend/view_bookings.php`)
- Booking view → MySQL bookings: reads (evidence: `backend/view_bookings.php`)
- Booking view → Booking feed: polls (evidence: `backend/view_bookings.php`)
- Booking feed → Database connection: requires (evidence: `backend/fetch_bookings.php`)
- Booking feed → MySQL bookings: reads (evidence: `backend/fetch_bookings.php`)
