# th3kaiser/frontend-project architecture

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

- Interactive diagram: https://gitdiagram.com/th3kaiser/frontend-project
- Repository: https://github.com/th3kaiser/frontend-project

## Overview

This is a Vue-based after-school lesson booking frontend, with a standalone local-data version and a second version that fetches lessons and submits orders to a localhost API. Students or parents browse and sort lessons, book available places, manage a cart, and validate checkout details. The excerpts show these behaviors in the app files; the HTML templates and backend implementation were not sampled, so UI wiring and server internals are not represented.

Main entry points: [`CST3144_Frontend/app.js`](https://github.com/th3kaiser/frontend-project/blob/main/CST3144_Frontend/app.js) (API-connected Vue app), [`app.js`](https://github.com/th3kaiser/frontend-project/blob/main/app.js) (Local Vue app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Booking frontend"]
  node_local_app["Local Vue app<br/>[app.js]"]
  node_connected_app["API-connected Vue app<br/>[app.js]"]
end

subgraph group_features["Booking features"]
  node_catalog["Lesson catalog<br/>[app.js]"]
  node_sorting["Lesson sorting<br/>[app.js]"]
  node_booking_cart["Booking and cart<br/>[app.js]"]
  node_checkout["Checkout validation<br/>[app.js]"]
  node_connected_catalog["Fetched lesson catalog<br/>[app.js]"]
  node_connected_booking["Booking and cart<br/>[app.js]"]
  node_connected_checkout["Order submission<br/>[app.js]"]
end

subgraph group_services["External services"]
  node_backend_api["Backend API"]
end

node_user(("Student or parent"))

node_user -->|"books lessons"| node_local_app
node_user -->|"books lessons"| node_connected_app
node_local_app -->|"manages"| node_catalog
node_local_app -->|"sorts"| node_sorting
node_local_app -->|"books and removes"| node_booking_cart
node_local_app -->|"validates orders"| node_checkout
node_connected_app -->|"loads"| node_connected_catalog
node_connected_app -->|"books and removes"| node_connected_booking
node_connected_app -->|"submits orders"| node_connected_checkout
node_connected_app -->|"GET lessons"| node_backend_api
node_connected_app -->|"POST orders"| node_backend_api

click node_local_app "https://github.com/th3kaiser/frontend-project/blob/main/app.js"
click node_connected_app "https://github.com/th3kaiser/frontend-project/blob/main/CST3144_Frontend/app.js"
click node_catalog "https://github.com/th3kaiser/frontend-project/blob/main/app.js"
click node_sorting "https://github.com/th3kaiser/frontend-project/blob/main/app.js"
click node_booking_cart "https://github.com/th3kaiser/frontend-project/blob/main/app.js"
click node_checkout "https://github.com/th3kaiser/frontend-project/blob/main/app.js"
click node_connected_catalog "https://github.com/th3kaiser/frontend-project/blob/main/CST3144_Frontend/app.js"
click node_connected_booking "https://github.com/th3kaiser/frontend-project/blob/main/CST3144_Frontend/app.js"
click node_connected_checkout "https://github.com/th3kaiser/frontend-project/blob/main/CST3144_Frontend/app.js"

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_local_app,node_connected_app toneBlue
class node_catalog,node_sorting,node_booking_cart,node_checkout,node_connected_catalog,node_connected_booking,node_connected_checkout toneAmber
class node_backend_api toneMint
class node_user toneIndigo
```

## Components

### Booking frontend

- [Local Vue app](https://github.com/th3kaiser/frontend-project/blob/main/app.js): `app.js`
- [API-connected Vue app](https://github.com/th3kaiser/frontend-project/blob/main/CST3144_Frontend/app.js): `CST3144_Frontend/app.js`

### Booking features

- [Lesson catalog](https://github.com/th3kaiser/frontend-project/blob/main/app.js): `app.js`
- [Lesson sorting](https://github.com/th3kaiser/frontend-project/blob/main/app.js): `app.js`
- [Booking and cart](https://github.com/th3kaiser/frontend-project/blob/main/app.js): `app.js`
- [Checkout validation](https://github.com/th3kaiser/frontend-project/blob/main/app.js): `app.js`
- [Fetched lesson catalog](https://github.com/th3kaiser/frontend-project/blob/main/CST3144_Frontend/app.js): `CST3144_Frontend/app.js`
- [Booking and cart](https://github.com/th3kaiser/frontend-project/blob/main/CST3144_Frontend/app.js): `CST3144_Frontend/app.js`
- [Order submission](https://github.com/th3kaiser/frontend-project/blob/main/CST3144_Frontend/app.js): `CST3144_Frontend/app.js`

### External services

- **Backend API**

### Other components

- **Student or parent**

## Connections

- Student or parent → Local Vue app: books lessons (evidence: `README.md`)
- Student or parent → API-connected Vue app: books lessons (evidence: `README.md`)
- Local Vue app → Lesson catalog: manages (evidence: `app.js`)
- Local Vue app → Lesson sorting: sorts (evidence: `app.js`)
- Local Vue app → Booking and cart: books and removes (evidence: `app.js`)
- Local Vue app → Checkout validation: validates orders (evidence: `app.js`)
- API-connected Vue app → Fetched lesson catalog: loads (evidence: `CST3144_Frontend/app.js`)
- API-connected Vue app → Booking and cart: books and removes (evidence: `CST3144_Frontend/app.js`)
- API-connected Vue app → Order submission: submits orders (evidence: `CST3144_Frontend/app.js`)
- API-connected Vue app → Backend API: GET lessons (evidence: `CST3144_Frontend/app.js`)
- API-connected Vue app → Backend API: POST orders (evidence: `CST3144_Frontend/app.js`)
