# ndzipha-devloveper/thembalethu_bnb architecture

> Architecture diagram of the GitHub repository ndzipha-devloveper/thembalethu_bnb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ndzipha-devloveper/thembalethu_bnb
- Repository: https://github.com/ndzipha-devloveper/thembalethu_bnb

## Overview

Thembalethu BnB is a responsive static accommodation website. A guest views the page, browses its property information and photos, and can use the booking enquiry form; the README describes page interactions but no submitted-form backend connection is implemented. The Java backend consists of type skeletons, not a configured server. The frontend relationships shown are documented at a high level in the README; backend links are omitted because the sampled service and repository types contain no behavior.

Main entry points: [`index.html`](https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/index.html) (Website page), [`js/script.js`](https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/js/script.js) (Page interactions), [`css/style.css`](https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/css/style.css) (Responsive styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Guest website"]
  node_page["Website page<br/>[index.html]"]
  node_interactions["Page interactions<br/>[script.js]"]
  node_presentation["Responsive styling<br/>[style.css]"]
end

subgraph group_backend["Backend skeleton"]
  node_enquiry_types["Enquiry DTOs"]
  node_enquiry_model["Booking enquiry"]
  node_enquiry_status["Enquiry status<br/>[EnquiryStatus.java]"]
  node_enquiry_service["Enquiry service"]
  node_availability_service["Availability service"]
  node_enquiry_repository["Enquiry repository"]
  node_exceptions["Enquiry exceptions"]
end

node_guest(("Guest"))

node_guest -->|"views"| node_page
node_page -->|"uses interactions"| node_interactions
node_page -->|"styled by"| node_presentation

click node_page "https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/index.html"
click node_interactions "https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/js/script.js"
click node_presentation "https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/css/style.css"
click node_enquiry_types "https://github.com/ndzipha-devloveper/thembalethu_bnb/tree/main/backend/src/main/java/com/ungasokoli/dto"
click node_enquiry_model "https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/backend/src/main/java/com/ungasokoli/model/BookingEnquiry.java"
click node_enquiry_status "https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/backend/src/main/java/com/ungasokoli/model/EnquiryStatus.java"
click node_enquiry_service "https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/backend/src/main/java/com/ungasokoli/service/EnquiryService.java"
click node_availability_service "https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/backend/src/main/java/com/ungasokoli/service/AvailabilityService.java"
click node_enquiry_repository "https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/backend/src/main/java/com/ungasokoli/repository/BookingEnquiryRepository.java"
click node_exceptions "https://github.com/ndzipha-devloveper/thembalethu_bnb/tree/main/backend/src/main/java/com/ungasokoli/exception"

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_page,node_interactions,node_presentation toneBlue
class node_enquiry_types,node_enquiry_model,node_enquiry_status,node_enquiry_service,node_availability_service,node_enquiry_repository,node_exceptions toneAmber
class node_guest toneIndigo
```

## Components

### Guest website

- [Website page](https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/index.html): `index.html`
- [Page interactions](https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/js/script.js): `js/script.js`
- [Responsive styling](https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/css/style.css): `css/style.css`

### Backend skeleton

- [Enquiry DTOs](https://github.com/ndzipha-devloveper/thembalethu_bnb/tree/main/backend/src/main/java/com/ungasokoli/dto): `backend/src/main/java/com/ungasokoli/dto`
- [Booking enquiry](https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/backend/src/main/java/com/ungasokoli/model/BookingEnquiry.java): `backend/src/main/java/com/ungasokoli/model/BookingEnquiry.java`
- [Enquiry status](https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/backend/src/main/java/com/ungasokoli/model/EnquiryStatus.java): `backend/src/main/java/com/ungasokoli/model/EnquiryStatus.java`
- [Enquiry service](https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/backend/src/main/java/com/ungasokoli/service/EnquiryService.java): `backend/src/main/java/com/ungasokoli/service/EnquiryService.java`
- [Availability service](https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/backend/src/main/java/com/ungasokoli/service/AvailabilityService.java): `backend/src/main/java/com/ungasokoli/service/AvailabilityService.java`
- [Enquiry repository](https://github.com/ndzipha-devloveper/thembalethu_bnb/blob/main/backend/src/main/java/com/ungasokoli/repository/BookingEnquiryRepository.java): `backend/src/main/java/com/ungasokoli/repository/BookingEnquiryRepository.java`
- [Enquiry exceptions](https://github.com/ndzipha-devloveper/thembalethu_bnb/tree/main/backend/src/main/java/com/ungasokoli/exception): `backend/src/main/java/com/ungasokoli/exception`

### Other components

- **Guest**

## Connections

- Guest → Website page: views (evidence: `README.md`)
- Website page → Page interactions: uses interactions (evidence: `README.md`)
- Website page → Responsive styling: styled by (evidence: `README.md`)
