# fragkopoulosfragkiskos/meltemi-rental-car architecture

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

- Interactive diagram: https://gitdiagram.com/fragkopoulosfragkiskos/meltemi-rental-car
- Repository: https://github.com/fragkopoulosfragkiskos/meltemi-rental-car

## Overview

Meltemi Rentals is a car-rental request site with a Flask booking endpoint that validates customer age, turns submitted details into booking data, and generates a priced rental-agreement PDF. The frontend presents the fleet and rental benefits, then submits the request to a Make webhook; the sampled frontend does not show it calling the Flask endpoint. The backend’s API-to-PDF flow and pricing/calculation dependencies are explicit in source. Other frontend sections are included as product capabilities, but their visual behavior is not further inferred.

Main entry points: [`Frontend/src/App.jsx`](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/App.jsx) (Page composition), [`Backend/pdf/rental_agreement.py`](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Backend/pdf/rental_agreement.py) (PDF agreement writer), [`Backend/api.py`](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Backend/api.py) (Booking API), [`Frontend/src/components/RequestForm.jsx`](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/components/RequestForm.jsx) (Request form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Rental website"]
  node_app["Page composition<br/>[App.jsx]"]
  node_header["Site header<br/>[Header.jsx]"]
  node_hero["Rental introduction<br/>[Hero.jsx]"]
  node_cars["Fleet catalog<br/>[Cars.jsx]"]
  node_benefits["Rental benefits<br/>[WhyUs.jsx]"]
  node_form["Request form<br/>[RequestForm.jsx]"]
  node_footer["Site footer<br/>[Footer.jsx]"]
end

subgraph group_booking["Booking intake"]
  node_api["Booking API<br/>[api.py]"]
  node_bookingdata["Booking normalization<br/>[booking_data.py]"]
end

subgraph group_agreement["Agreement generation"]
  node_agreement["PDF agreement writer"]
  node_pricing["Category pricing<br/>[rental_pricing.py]"]
  node_calculator["Rental calculator"]
end

node_renter(("Renter"))
node_make{{"Make webhook"}}
node_pdf["Rental agreement PDF"]

node_app -->|"renders"| node_header
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_cars
node_app -->|"renders"| node_benefits
node_app -->|"renders"| node_form
node_app -->|"renders"| node_footer
node_renter -->|"submits request"| node_form
node_form -->|"posts JSON"| node_make
node_make -.->|"routes booking"| node_api
node_api -->|"normalizes data"| node_bookingdata
node_api -->|"generates PDF"| node_agreement
node_agreement -->|"gets daily rate"| node_pricing
node_agreement -->|"calculates rental"| node_calculator
node_agreement -->|"writes agreement"| node_pdf

click node_app "https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/App.jsx"
click node_header "https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/components/Header.jsx"
click node_hero "https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/components/Hero.jsx"
click node_cars "https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/components/Cars.jsx"
click node_benefits "https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/components/WhyUs.jsx"
click node_form "https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/components/RequestForm.jsx"
click node_footer "https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/components/Footer.jsx"
click node_api "https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Backend/api.py"
click node_bookingdata "https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Backend/pdf/booking_data.py"
click node_agreement "https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Backend/pdf/rental_agreement.py"
click node_pricing "https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Backend/pdf/rental_pricing.py"
click node_calculator "https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Backend/pdf/rental_calculator.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_app,node_header,node_hero,node_cars,node_benefits,node_form,node_footer toneBlue
class node_api,node_bookingdata toneAmber
class node_agreement,node_pricing,node_calculator,node_make toneMint
class node_renter,node_pdf toneIndigo
```

## Components

### Rental website

- [Page composition](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/App.jsx): `Frontend/src/App.jsx`
- [Site header](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/components/Header.jsx): `Frontend/src/components/Header.jsx`
- [Rental introduction](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/components/Hero.jsx): `Frontend/src/components/Hero.jsx`
- [Fleet catalog](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/components/Cars.jsx): `Frontend/src/components/Cars.jsx`
- [Rental benefits](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/components/WhyUs.jsx): `Frontend/src/components/WhyUs.jsx`
- [Request form](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/components/RequestForm.jsx): `Frontend/src/components/RequestForm.jsx`
- [Site footer](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Frontend/src/components/Footer.jsx): `Frontend/src/components/Footer.jsx`

### Booking intake

- [Booking API](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Backend/api.py): `Backend/api.py`
- [Booking normalization](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Backend/pdf/booking_data.py): `Backend/pdf/booking_data.py`

### Agreement generation

- [PDF agreement writer](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Backend/pdf/rental_agreement.py): `Backend/pdf/rental_agreement.py`
- [Category pricing](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Backend/pdf/rental_pricing.py): `Backend/pdf/rental_pricing.py`
- [Rental calculator](https://github.com/fragkopoulosfragkiskos/meltemi-rental-car/blob/main/Backend/pdf/rental_calculator.py): `Backend/pdf/rental_calculator.py`

### Other components

- **Renter**
- **Make webhook**
- **Rental agreement PDF**

## Connections

- Page composition → Site header: renders (evidence: `Frontend/src/App.jsx`)
- Page composition → Rental introduction: renders (evidence: `Frontend/src/App.jsx`)
- Page composition → Fleet catalog: renders (evidence: `Frontend/src/App.jsx`)
- Page composition → Rental benefits: renders (evidence: `Frontend/src/App.jsx`)
- Page composition → Request form: renders (evidence: `Frontend/src/App.jsx`)
- Page composition → Site footer: renders (evidence: `Frontend/src/App.jsx`)
- Renter → Request form: submits request (evidence: `Frontend/src/components/RequestForm.jsx`)
- Request form → Make webhook: posts JSON (evidence: `Frontend/src/components/RequestForm.jsx`)
- Make webhook → Booking API: routes booking
- Booking API → Booking normalization: normalizes data (evidence: `Backend/api.py`)
- Booking API → PDF agreement writer: generates PDF (evidence: `Backend/api.py`)
- PDF agreement writer → Category pricing: gets daily rate (evidence: `Backend/pdf/rental_agreement.py`)
- PDF agreement writer → Rental calculator: calculates rental (evidence: `Backend/pdf/rental_agreement.py`)
- PDF agreement writer → Rental agreement PDF: writes agreement (evidence: `Backend/pdf/rental_agreement.py`)
