How servego/servego-platform works
ServeGo is a home-services marketplace: customers discover services and request bookings; providers receive leads, perform work, and track progress. The backend also supports accounts, reviews, notifications, chat, wallet, and administrative operations. The graph follows documented frontend composition and sampled backend calls; the README is empty, and several important subsystems are represented from the file tree and SOURCE INDEX without inferred connections.
Main entry points: App.jsx Web application · client.js Application database · api.js API routes · bookingController.js Booking requests
Components 21
Customer and provider experience
- Web application
frontend/src/App.jsx - Service discovery
frontend/src/pages/Services.jsx - Customer dashboard
frontend/src/pages/CustomerDashboard.jsx - Provider dashboard
frontend/src/pages/ProviderDashboard.jsx - Admin console
frontend/src/pages/AdminPanel.jsx - Shared app state
frontend/src/context/AppContext.jsx - API client
frontend/src/utils/apiClient.js
Backend API and identity
- HTTP and socket server
backend/server.js - API routes
backend/routes/api.js - Accounts and sessions
backend/controllers/userController.js
Marketplace fulfillment
- Service catalog
backend/controllers/serviceController.js - Booking requests
backend/controllers/bookingController.js - Lead and booking workflow
backend/services/leadService.js - Live tracking
backend/services/trackingService.js
Platform operations
- Notifications
backend/services/notificationService.js - Reviews and reputation
backend/controllers/reviewController.js - Background job queue
backend/services/queue/queueService.js - Application database
backend/prisma/client.js
Other components
- Customer
- Provider
- Administrator
Connections 27
- Customer → Web application: uses
- Provider → Web application: uses
- Administrator → Web application: uses
- Web application → Shared app state: composes
frontend/src/App.jsx - Web application → Service discovery: routes to
frontend/src/App.jsx - Web application → Customer dashboard: routes to
frontend/src/App.jsx - Web application → Provider dashboard: routes to
frontend/src/App.jsx - Web application → Admin console: routes to
frontend/src/App.jsx - Service discovery → Shared app state: reads state
frontend/src/pages/Services.jsx - Service discovery → API client: requests data
frontend/src/pages/Services.jsx - HTTP and socket server → API routes: mounts
backend/server.js - API routes → Accounts and sessions: routes requests
backend/routes/api.js - API routes → Service catalog: routes requests
backend/routes/api.js - API routes → Booking requests: routes requests
backend/routes/api.js - API routes → Reviews and reputation: routes requests
backend/routes/api.js - Booking requests → Lead and booking workflow: creates and advances
backend/controllers/bookingController.js - Booking requests → Live tracking: updates location
backend/controllers/bookingController.js - HTTP and socket server → Live tracking: handles socket updates
backend/server.js - Booking requests → Notifications: notifies lead acceptance
backend/controllers/bookingController.js - Reviews and reputation → Notifications: notifies publication
backend/controllers/reviewController.js - Notifications → Background job queue: enqueues work
backend/services/notificationService.js - Background job queue → Application database: stores and claims jobs
backend/services/queue/queueService.js - HTTP and socket server → Application database: checks database
backend/server.js - Accounts and sessions → Application database: reads and writes
backend/controllers/userController.js - Service catalog → Application database: reads and writes
backend/controllers/serviceController.js - Booking requests → Application database: reads and writes
backend/controllers/bookingController.js - Reviews and reputation → Application database: reads and writes
backend/controllers/reviewController.js