How redhaziani51-source/delivery-app works
This repository is a small Next.js delivery-driver interface. A user opens the delivery landing page and follows its link to the driver dashboard; the driver can go online, obtain browser geolocation updates, and send location records to Supabase. The dashboard also presents an outside-map view and an inside hub, though the hub’s documents and earnings entries are display-only in the sampled code. The repository contains a separate Create Next App starter page and layout under app/; their relationship to the src/app routes is not established by the excerpts.
Main entry points: driver/page.tsx Driver dashboard · app/page.tsx Delivery landing · supabaseClient.ts Supabase client
Components 8
Web interface
- Delivery landing
src/app/page.tsx - Driver dashboard
src/app/driver/page.tsx
Location updates
- Browser geolocation
Location backend
- Supabase client
src/lib/supabaseClient.ts - Driver locations
Starter scaffold
- Starter home page
app/page.tsx - Starter root layout
app/layout.tsx
Other components
- Driver user
Connections 6
- Driver user → Delivery landing: opens
src/app/page.tsx - Delivery landing → Driver dashboard: links to
src/app/page.tsx - Driver user → Driver dashboard: uses
src/app/driver/page.tsx - Driver dashboard → Browser geolocation: watches position
src/app/driver/page.tsx - Driver dashboard → Supabase client: upserts through
src/app/driver/page.tsx - Driver dashboard → Driver locations: upserts location
src/app/driver/page.tsx