How rishiraj5495/mobile_repair works
RepairNow is a doorstep mobile-repair marketplace. Customers submit repair videos, receive AI validation and an assessment, book a nearby technician, pay, and follow booking progress; technicians handle requests and status updates. The graph preserves the documented discovery, reviews, notifications, payment, tracking, caching, and asynchronous-event capabilities. Some backend route wiring and integrations are documented but not shown in sampled source, so those relationships cite the README rather than implying that unsampled code was inspected.
Main entry points: routes/orders.js Order APIs · app.py AI service API · app.js Express application · Models/orders.js Order records
Components 30
Marketplace Backend
- Express application
app.js - Booking APIs
routes/booking.js - Order APIs
routes/orders.js - Technician discovery
routes/allNearbyTechnician.js - Route and ETA
routes/eta.js - Service reviews
Models/ratings.js - Video validation API
routes/AI-flow.js
Video Assessment
- AI service API
AI-Service/app.py - Frame extraction
AI-Service/services/video_processor.py - Visual analysis
AI-Service/services/visual_analyzer.py - Audio extraction
AI-Service/services/audio_processor.py - Speech recognition
AI-Service/services/speech_processor.py - Transcript analysis
AI-Service/services/semantic_analyzer.py - Video validation
AI-Service/services/decision_engine.py - Repair assessment
AI-Service/services/nebius_service.py
Application State
- Order records
Models/orders.js - Technician records
Models/mobileShops.js - Customer accounts
Models/users.js - Redis cache
config/redis.js
Dispatch and Updates
- Razorpay webhook
routes/razorpayWebhook.js - Booking event producer
config/kafka.js - Booking event consumer
config/kafkaConsumer.js - Live status and location
sockets.js - Push notifications
routes/fcm.js
Other components
- Customer
- Technician
- Razorpay
- Firebase Cloud Messaging
- Google Maps APIs
- MongoDB
Connections 42
- Customer → Express application: uses marketplace
- Express application → Booking APIs: routes bookings
app.js - Express application → Order APIs: routes orders
app.js - Express application → Video validation API: routes video validation
app.js - Booking APIs → Order records: creates bookings
routes/booking.js - Order APIs → Order records: reads and updates
routes/orders.js - Booking APIs → Technician records: uses technician data
routes/booking.js - Technician discovery → Technician records: searches nearby
routes/allNearbyTechnician.js - Customer → Technician discovery: finds technicians
- Customer → Route and ETA: requests ETA
- Route and ETA → Google Maps APIs: gets routes and distance
- Customer → Video validation API: uploads repair video
- Video validation API → AI service API: submits video
- AI service API → Frame extraction: extracts frames
AI-Service/app.py - AI service API → Audio extraction: extracts audio
AI-Service/app.py - AI service API → Visual analysis: analyzes frames
AI-Service/app.py - AI service API → Speech recognition: transcribes speech
AI-Service/app.py - AI service API → Transcript analysis: analyzes transcript
AI-Service/app.py - AI service API → Video validation: combines evidence
AI-Service/app.py - AI service API → Repair assessment: generates assessment
AI-Service/app.py - Video validation API → Order records: stores assessment with order
- Customer → Order APIs: pays and tracks booking
- Order APIs → Razorpay: initiates payment
- Razorpay → Razorpay webhook: sends payment event
- Razorpay webhook → Order records: updates paid status
routes/razorpayWebhook.js - Technician → Order APIs: updates booking status
- Order APIs → Live status and location: broadcasts status and location
- Technician → Live status and location: shares live location
- Live status and location → Customer: sends live updates
- Order APIs → Booking event producer: publishes booking events
routes/orders.js - Booking event producer → Booking event consumer: delivers events
config/kafkaConsumer.js - Booking event consumer → Order records: loads booking
config/kafkaConsumer.js - Booking event consumer → Push notifications: triggers notification
config/kafkaConsumer.js - Order APIs → Push notifications: notifies on transitions
- Push notifications → Firebase Cloud Messaging: sends push message
- Customer → Service reviews: rates completed service
- Express application → Redis cache: connects cache
app.js - Order APIs → Redis cache: caches order reads
routes/orders.js - Express application → MongoDB: connects application data
app.js - Order records → MongoDB: persists orders
- Technician records → MongoDB: persists technician data
- Customer accounts → MongoDB: persists accounts