How sourodipc18/lockit-platform-mvp works
LOCKIT is a web app for reserving urban storage lockers and managing access for each booking. Customers choose a location and booking details, create a reservation, and receive booking and access information; separate access and approval pages support confirmation, timers, overtime display, and closing a booking. The booking API owns the booking actions and persists them in PostgreSQL. Edges reflect the sampled page fetches and API queries; unsampled UI behavior and integrations are not inferred.
Main entry points: route.ts Booking API · app/page.tsx Locker discovery and booking · access/page.tsx Live locker access · approve/page.tsx QR approval
Components 6
Customer booking
- Locker discovery and booking
app/page.tsx
Access lifecycle
- QR approval
app/approve/page.tsx - Live locker access
app/access/page.tsx
Booking backend
- Booking API
app/api/bookings/route.ts - PostgreSQL bookings
Other components
- Customer
Connections 9
- Customer → Locker discovery and booking: uses
- Customer → Live locker access: opens access
- Customer → QR approval: scans QR
- Locker discovery and booking → Booking API: creates bookings
app/page.tsx - Locker discovery and booking → Booking API: polls bookings
app/page.tsx - Live locker access → Booking API: loads booking
app/access/page.tsx - Live locker access → Booking API: approves or closes
app/access/page.tsx - QR approval → Booking API: loads and approves
app/approve/page.tsx - Booking API → PostgreSQL bookings: reads and writes
app/api/bookings/route.ts