How matt-joe/avanti works
Avanti Lodge is a guest-facing lodge website with accommodation discovery, room availability and booking, account management, and local visitor information. The documented booking flow checks room availability, sends booking details to the Express backend to create a Stripe Checkout session, then records a completed payment through a Stripe webhook in Supabase. The graph also preserves the site’s signup, login, profile, promotions, accommodation, and visitor-information areas. Some frontend modules are indexed but not excerpted, so their internal connections are omitted rather than inferred.
Main entry points: server.js Express payment backend · booking.js Room browsing · index.js Home and promotions · signup.js Signup
Components 20
Guest experience
- Home and promotions
index.js - Image gallery
Gallery Test/galleryTest.js
Booking and payment
- Room browsing
Booking/booking.js - Availability checks
Booking/booking.js - Checkout initiation
Booking/booking.js - Payment details display
Payment/payment.js - Express payment backend
Backend/server.js - Stripe
Guest accounts
- Supabase auth and data
- Signup
Sign Up/signup.js - Login and reset
Login/login.js - Profile and bookings
Profile/profile.js
Lodge information
- About the lodge
About Us/aboutus.js - Standard rooms
Accomodation/Standard Rooms/standardrooms.js - Self catering
Accomodation/Self Catering/selfcatering.js - Contact
Contact/contact.js - Activities
Things To Do/Activities/activities.js - Dining recommendations
Things To Do/Eat Out/eatout.js - Out and about
Things To Do/Out and About/outandabout.js
Other components
- Guest
Connections 21
- Guest → Home and promotions: browses
README.md - Guest → Room browsing: selects room
Booking/booking.js - Room browsing → Availability checks: checks dates
Booking/booking.js - Availability checks → Supabase auth and data: reads bookings
Booking/booking.js - Room browsing → Supabase auth and data: loads rooms
Booking/booking.js - Checkout initiation → Express payment backend: requests session
Booking/booking.js - Express payment backend → Stripe: creates session
Backend/server.js - Stripe → Express payment backend: sends webhook
Backend/server.js - Express payment backend → Supabase auth and data: inserts booking
Backend/server.js - Signup → Supabase auth and data: registers account
Sign Up/signup.js - Login and reset → Supabase auth and data: authenticates
Login/login.js - Profile and bookings → Supabase auth and data: reads and updates
Profile/profile.js - Home and promotions → Supabase auth and data: loads promotions
index.js - Guest → About the lodge: views
- Guest → Standard rooms: views
- Guest → Self catering: views
- Guest → Contact: views
- Guest → Activities: views
- Guest → Dining recommendations: views
- Guest → Out and about: views
- Guest → Image gallery: views