# cozcore07/appointment-booking-project architecture

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

- Interactive diagram: https://gitdiagram.com/cozcore07/appointment-booking-project
- Repository: https://github.com/cozcore07/appointment-booking-project

## Overview

This Flask application lets users log in, maintain appointment details and image paths, start an automated booking, and review booking history. The booking route invokes Selenium automation, which submits the user’s data to an external appointment site and returns a status for storage. The graph also shows the template layer and SQLite-backed application state. The README mentions continuous monitoring, dynamic IP support, CAPTCHA integration, and an admin panel, but the sampled implementation does not establish those as working capabilities; the CAPTCHA is a TODO.

Main entry points: [`app.py`](https://github.com/cozcore07/appointment-booking-project/blob/main/app.py) (Flask routes), [`booking_bot.py`](https://github.com/cozcore07/appointment-booking-project/blob/main/booking_bot.py) (Selenium booking), [`templates`](https://github.com/cozcore07/appointment-booking-project/tree/main/templates) (Page templates)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_flask["Flask routes<br/>[app.py]"]
  node_templates["Page templates"]
end

subgraph group_data["User and booking data"]
  node_sqlite[("SQLite database<br/>[app.py]")]
end

subgraph group_automation["Booking automation"]
  node_bot["Selenium booking<br/>[booking_bot.py]"]
end

node_user(("User"))
node_portal{{"Appointment site"}}

node_user -.->|"uses"| node_flask
node_flask -->|"renders"| node_templates
node_flask -->|"reads and writes"| node_sqlite
node_flask -->|"invokes"| node_bot
node_bot -->|"submits form"| node_portal
node_bot -->|"returns status"| node_flask

click node_flask "https://github.com/cozcore07/appointment-booking-project/blob/main/app.py"
click node_templates "https://github.com/cozcore07/appointment-booking-project/tree/main/templates"
click node_sqlite "https://github.com/cozcore07/appointment-booking-project/blob/main/app.py"
click node_bot "https://github.com/cozcore07/appointment-booking-project/blob/main/booking_bot.py"

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_flask,node_templates,node_user toneBlue
class node_sqlite toneAmber
class node_bot toneMint
class node_portal toneIndigo
```

## Components

### Web application

- [Flask routes](https://github.com/cozcore07/appointment-booking-project/blob/main/app.py): `app.py`
- [Page templates](https://github.com/cozcore07/appointment-booking-project/tree/main/templates): `templates`

### User and booking data

- [SQLite database](https://github.com/cozcore07/appointment-booking-project/blob/main/app.py): `app.py`

### Booking automation

- [Selenium booking](https://github.com/cozcore07/appointment-booking-project/blob/main/booking_bot.py): `booking_bot.py`

### Other components

- **User**
- **Appointment site**

## Connections

- User → Flask routes: uses
- Flask routes → Page templates: renders (evidence: `app.py`)
- Flask routes → SQLite database: reads and writes (evidence: `app.py`)
- Flask routes → Selenium booking: invokes (evidence: `app.py`)
- Selenium booking → Appointment site: submits form (evidence: `booking_bot.py`)
- Selenium booking → Flask routes: returns status (evidence: `app.py`)
