How fragkopoulosfragkiskos/meltemi-rental-car works
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: App.jsx Page composition · rental_agreement.py PDF agreement writer · api.py Booking API · RequestForm.jsx Request form
Components 15
Rental website
- Page composition
Frontend/src/App.jsx - Site header
Frontend/src/components/Header.jsx - Rental introduction
Frontend/src/components/Hero.jsx - Fleet catalog
Frontend/src/components/Cars.jsx - Rental benefits
Frontend/src/components/WhyUs.jsx - Request form
Frontend/src/components/RequestForm.jsx - Site footer
Frontend/src/components/Footer.jsx
Booking intake
- Booking API
Backend/api.py - Booking normalization
Backend/pdf/booking_data.py
Agreement generation
- PDF agreement writer
Backend/pdf/rental_agreement.py - Category pricing
Backend/pdf/rental_pricing.py - Rental calculator
Backend/pdf/rental_calculator.py
Other components
- Renter
- Make webhook
- Rental agreement PDF
Connections 14
- Page composition → Site header: renders
Frontend/src/App.jsx - Page composition → Rental introduction: renders
Frontend/src/App.jsx - Page composition → Fleet catalog: renders
Frontend/src/App.jsx - Page composition → Rental benefits: renders
Frontend/src/App.jsx - Page composition → Request form: renders
Frontend/src/App.jsx - Page composition → Site footer: renders
Frontend/src/App.jsx - Renter → Request form: submits request
Frontend/src/components/RequestForm.jsx - Request form → Make webhook: posts JSON
Frontend/src/components/RequestForm.jsx - Make webhook → Booking API: routes booking
- Booking API → Booking normalization: normalizes data
Backend/api.py - Booking API → PDF agreement writer: generates PDF
Backend/api.py - PDF agreement writer → Category pricing: gets daily rate
Backend/pdf/rental_agreement.py - PDF agreement writer → Rental calculator: calculates rental
Backend/pdf/rental_agreement.py - PDF agreement writer → Rental agreement PDF: writes agreement
Backend/pdf/rental_agreement.py