How hellen-mas/altokke_movil works
ALTOKKE MÓVIL is a two-sided mototaxi booking app. A passenger registers or signs in, chooses a route, requests a ride, follows its status, then reviews the trip; a driver registers for approval, handles ride requests, and completes active trips. The graph groups those workflows with account/security, shared backend services, and supporting capabilities documented in the README. Sampled source confirms selected service and state connections; other capability links rely on README documentation, so unsampled implementation details are not inferred.
Main entry points: supabase.ts Supabase client · autenticacion Sign-in and account · conductorService.ts Driver service · viajeService.ts Trip service
Components 22
Identity and onboarding
- Auth routes
src/app/(auth) - Sign-in and account
src/features/autenticacion - Passenger registration
src/features/pasajeros/screens/registro - Driver registration
src/features/conductores/screens/registro
Passenger journeys
- Passenger routes
src/app/(pasajero) - Trip booking and tracking
src/features/viajes/screens/pasajero - Trip state context
src/features/viajes/context/ViajeContext.tsx - Trip service
src/features/viajes/services/viajeService.ts - Saved places
src/features/pasajeros/hooks/useDireccionesGuardadas.ts - Maps
src/features/viajes/components
Driver operations
- Driver routes
src/app/(conductor) - Driver registration and operations
src/features/conductores - Driver service
src/features/conductores/services/conductorService.ts
Shared platform
- Supabase client
src/shared/api/supabase.ts - Supabase Auth, PostgreSQL, Storage
- Edge Functions
supabase/functions
Supporting features
- Trip notifications
src/features/notificaciones - Earnings and payments
src/features/finanzas - Help and reports
src/features/soporte - Profiles and account settings
src/features/pasajeros/screens/cuenta
Other components
- Passenger
- Driver
Connections 31
- Passenger → Auth routes: registers or signs in
README.md - Auth routes → Sign-in and account: renders auth screens
- Sign-in and account → Supabase client: authenticates
src/features/autenticacion/services/authService.ts - Sign-in and account → Edge Functions: checks DNI
src/features/autenticacion/hooks/useConsultaDniQuery.ts - Sign-in and account → Driver service: checks driver status
src/features/autenticacion/hooks/useLoginSession.ts - Passenger → Passenger registration: registers profile
README.md - Driver → Driver registration: submits application
README.md - Driver registration → Driver service: stores application data
- Passenger → Passenger routes: uses passenger app
README.md - Passenger routes → Trip booking and tracking: opens trip screens
- Trip booking and tracking → Trip state context: uses trip state
- Trip state context → Trip service: loads trip data
src/features/viajes/context/ViajeContext.tsx - Trip booking and tracking → Trip service: creates and rates rides
README.md - Trip booking and tracking → Maps: shows routes
README.md - Saved places → Trip state context: sets destination
src/features/pasajeros/hooks/useDireccionesGuardadas.ts - Saved places → Supabase client: persists saved places
- Driver → Driver routes: uses driver app
README.md - Driver routes → Driver registration and operations: opens driver features
src/app/(conductor)/_layout.tsx - Driver registration and operations → Driver service: manages driver data
src/features/conductores/services/conductorService.ts - Driver registration and operations → Trip service: handles ride requests
- Trip service → Supabase client: reads and writes rides
src/features/viajes/services/viajeService.ts - Driver service → Supabase client: reads and writes driver data
src/features/conductores/services/conductorService.ts - Supabase client → Supabase Auth, PostgreSQL, Storage: connects to backend
src/shared/api/supabase.ts - Sign-in and account → Supabase client: uploads avatars
src/features/autenticacion/services/authService.ts - Driver service → Supabase client: uploads documents
src/features/conductores/services/conductorService.ts - Trip notifications → Trip service: loads trip history
src/features/notificaciones/hooks/useNotificaciones.ts - Trip notifications → Supabase client: subscribes to ride changes
src/features/notificaciones/services/notificacionesService.ts - Driver registration and operations → Earnings and payments: views earnings
README.md - Passenger routes → Profiles and account settings: manages profile
README.md - Passenger routes → Help and reports: opens help and reports
README.md - Driver routes → Help and reports: opens help and reports
README.md