How lazonev1/lazone works
LaZone is an Expo/React Native services marketplace: customers discover providers, arrange bookings, communicate, and review completed work; providers can register and manage their profiles. The README describes a client stack of screens, presentation/state, Firestore adapters, and backend services, with Firebase as the platform. The graph preserves the major marketplace branches, including referrals and notifications. Several route-to-data connections are documented only at the layer level or their source was not sampled, so those links are dashed and unverified rather than asserted as observed calls.
Main entry points: firebase.ts Firebase client · registration.tsx Provider registration · reviewService.ts Review operations · authService.ts Account operations
Components 33
Marketplace app
- Sign in
apps/mobile/app/(auth)/login.tsx - Explore providers
apps/mobile/app/(tabs)/index.tsx - Search results
apps/mobile/app/explore/search-results.tsx - Provider profile
apps/mobile/app/provider/[id].tsx - Booking flow
apps/mobile/app/booking/new.tsx - Booking detail
apps/mobile/app/booking/[id].tsx - Submit review
apps/mobile/app/booking/review.tsx - Conversations
apps/mobile/app/messages/[id].tsx - Account
apps/mobile/app/(tabs)/account.tsx - Referrals
apps/mobile/components/account/ReferralComponent.tsx - Push notifications
apps/mobile/services/notifications/pushNotifications.ts
Provider tools
- Provider registration
apps/mobile/app/provider/registration.tsx - Services and portfolio
apps/mobile/components/provider/ServiceDetailsStep.tsx - Certification upload
apps/mobile/components/provider/CertificationUploader.tsx - Profile preview
apps/mobile/app/provider/preview.tsx
Client data layer
- Booking state
apps/mobile/hooks/useBookings.ts - Chat state
apps/mobile/hooks/useChats.ts - Review state
apps/mobile/hooks/useReviews.ts - Booking adapter
apps/mobile/repositories/bookingRepository.ts - Message adapter
apps/mobile/repositories/messageRepository.ts - Provider adapter
apps/mobile/repositories/providerRepository.ts - Review adapter
apps/mobile/repositories/reviewRepository.ts - Authentication state
apps/mobile/contexts/auth.tsx
Firebase operations
- Firebase client
apps/mobile/backend/main/src/config/firebase.ts - Account operations
apps/mobile/backend/main/src/services/authService.ts - Booking operations
apps/mobile/backend/main/src/services/bookingService.ts - Provider operations
apps/mobile/backend/main/src/services/providerService.ts - Review operations
apps/mobile/backend/main/src/services/reviewService.ts - File storage
apps/mobile/backend/main/src/services/storageService.ts - Firestore
Shared UI
- Shared controls
packages/ui/src/Button.tsx
Other components
- Customer
- Provider
Connections 29
- Customer → Sign in: signs in
- Customer → Explore providers: discovers
- Explore providers → Search results: searches
- Search results → Provider profile: opens profile
- Customer → Booking flow: requests service
- Booking flow → Booking detail: tracks booking
- Booking detail → Submit review: reviews work
- Customer → Conversations: messages provider
- Customer → Account: manages account
- Account → Referrals: uses referrals
- Firebase client → Account operations: configures
apps/mobile/backend/main/src/services/authService.ts - Authentication state → Account operations: uses
apps/mobile/contexts/auth.tsx - Authentication state → Firebase client: initializes
apps/mobile/contexts/auth.tsx - Provider → Provider registration: registers
- Provider registration → Services and portfolio: enters services
- Services and portfolio → Certification upload: renders uploader
apps/mobile/components/provider/ServiceDetailsStep.tsx - Provider registration → Profile preview: previews profile
- Booking state → Booking adapter: adapts data
- Chat state → Message adapter: adapts data
- Review state → Review adapter: adapts data
- Booking adapter → Booking operations: uses operations
- Provider adapter → Provider operations: uses operations
- Review adapter → Review operations: uses operations
- Review operations → Firebase client: uses client
apps/mobile/backend/main/src/services/reviewService.ts - Account operations → Firestore: reads and writes
apps/mobile/backend/main/src/services/authService.ts - Review operations → Firestore: reads and writes
apps/mobile/backend/main/src/services/reviewService.ts - File storage → Firebase client: uses storage
apps/mobile/backend/main/src/services/storageService.ts - Push notifications → Customer: notifies
- Submit review → Shared controls: renders button
apps/mobile/app/booking/review.tsx