How kanreez/hackathon works
GarageGo is a two-sided hourly garage-rental app: renters find a listing, choose a time, pay, manage an active booking, and review their stay; hosts list and manage garages and pair door devices. The Expo client calls the Express server, which owns booking, payment, and door authorization and uses Supabase for persistence. The map also covers documented AI search, geocoding, photo uploads, and the ESP32 command loop. Relationships for unsampled modules are included only where the README documents them.
Main entry points: server.js Express API · garages.ts Garage API client · new.tsx Create listing · [id].tsx Garage details
Components 24
Expo client
- Sign in
src/app/(auth)/login.tsx - Profile and settings
src/app/settings.tsx - Garage API client
src/services/garages.ts - Payment API client
src/services/payments.ts
Rental workflow
- Find garages
src/app/(tabs)/index.tsx - Garage details
src/app/garage/[id].tsx - Bookings and door
src/app/(tabs)/bookings.tsx - Review stay
src/components/ReviewBox.tsx
Host management
- Your garages
src/app/host/index.tsx - Create listing
src/app/host/new.tsx
Server services
- Express API
server/server.js - Search and garage rules
server/garages.js - Pricing and checkout
server/payments/pricing.js - Payment provider
server/payments/provider.js - Data repository
server/repo.js - Address geocoding
server/geocode.js - Garage photos
server/photos.js - Username management
server/usernames.js
External systems
- Supabase
- AI search providers
server/anthropic.js - Nominatim
- ESP32 door
Other components
- Renter
- Garage host
Connections 32
- Renter → Sign in: signs in
README.md - Renter → Find garages: searches
README.md - Find garages → Garage API client: requests results
src/app/(tabs)/index.tsx - Garage API client → Express API: calls API
src/services/garages.ts - Express API → Search and garage rules: handles search
server/server.js - Search and garage rules → AI search providers: parses query
README.md - Renter → Garage details: selects listing
README.md - Garage details → Garage API client: creates booking
README.md - Garage details → Payment API client: starts checkout
README.md - Payment API client → Express API: calls API
README.md - Express API → Pricing and checkout: calculates price
server/server.js - Express API → Payment provider: confirms payment
server/server.js - Express API → Data repository: reads and writes
server/server.js - Data repository → Supabase: persists data
README.md - Renter → Bookings and door: manages stay
README.md - Bookings and door → Garage API client: requests door action
README.md - Express API → ESP32 door: queues commands
README.md - ESP32 door → Express API: polls and acknowledges
README.md - Bookings and door → Review stay: reviews stay
README.md - Review stay → Garage API client: saves review
src/components/ReviewBox.tsx - Garage host → Your garages: manages listings
README.md - Garage host → Create listing: creates listing
README.md - Your garages → Garage API client: updates listings
src/app/host/index.tsx - Create listing → Garage API client: submits listing
README.md - Create listing → Address geocoding: finds address
README.md - Address geocoding → Nominatim: queries addresses
README.md - Create listing → Garage photos: uploads photos
README.md - Garage photos → Supabase: stores images
README.md - Your garages → Express API: pairs door device
README.md - Profile and settings → Username management: changes username
README.md - Express API → Username management: handles usernames
server/server.js - Express API → Supabase: uses auth and storage
README.md