How harshalw19/bidauc-backend-mircoservices works
Blue Collar Marketplace is a six-service marketplace: users verify by OTP and register, then use profiles, jobs, bids, and payments; notifications deliver event-driven SMS. The README documents Nginx, RabbitMQ, MongoDB-per-service, Redis, and Razorpay, but the tree contains no gateway or Redis implementation. Sampled source confirms OTP/user registration, job-to-user HTTP clients, bid-to-job/user clients, and notification consumption; several payment and inter-service details are documented but not verified in source excerpts.
Main entry points: bids.js Bidding · payments.js Payment processing · jobs.js Job listings · auth.js OTP and sessions
Components 26
Identity & Profiles
- OTP and sessions
services/auth-service/src/routes/auth.js - Auth user records
services/auth-service/src/models/User.js - OTP records
services/auth-service/src/models/Otp.js - User profiles
services/user-service/src/routes/users.js - Profile records
services/user-service/src/models/User.js - Profile event sync
services/user-service/src/handlers/userHandler.js
Marketplace
- Job listings
services/job-service/src/routes/jobs.js - Job categories
services/job-service/src/routes/categories.js - Job records
services/job-service/src/models/Job.js - Job user client
services/job-service/src/clients/userServiceClient.js - Bidding
services/bid-service/src/routes/bids.js - Bid records
services/bid-service/src/models/Bid.js - Bid job client
services/bid-service/src/clients/jobServiceClient.js - Bid user client
services/bid-service/src/clients/userServiceClient.js
Payments
- Payment processing
services/payment-service/src/routes/payments.js - Payment records
services/payment-service/src/models/Payment.js - Payment service clients
services/payment-service/src/clients
Notifications
- Event consumer
services/notification-service/src/consumer.js - SMS handlers
services/notification-service/src/handlers/smsHandler.js
Shared Platform
- Nginx gateway
- RabbitMQ events
- MongoDB
- Redis cache
Other components
- Marketplace users
- Twilio SMS
- Razorpay
Connections 37
- Marketplace users → Nginx gateway: requests
- Nginx gateway → OTP and sessions: routes to
- Nginx gateway → User profiles: routes to
- Nginx gateway → Job listings: routes to
- Nginx gateway → Bidding: routes to
- Nginx gateway → Payment processing: routes to
- OTP and sessions → Auth user records: reads and writes
services/auth-service/src/routes/auth.js - OTP and sessions → OTP records: stores and verifies
services/auth-service/src/routes/auth.js - OTP and sessions → RabbitMQ events: publishes registration
services/auth-service/src/routes/auth.js - User profiles → Profile records: reads and writes
services/user-service/src/routes/users.js - Event consumer → RabbitMQ events: consumes events
services/notification-service/src/consumer.js - Event consumer → Profile event sync: dispatches user events
services/notification-service/src/consumer.js - Profile event sync → Profile records: upserts profiles
services/user-service/src/handlers/userHandler.js - Job listings → Job records: manages listings
services/job-service/src/routes/jobs.js - Job listings → Job user client: fetches users
services/job-service/src/routes/jobs.js - Job user client → User profiles: requests user data
services/job-service/src/clients/userServiceClient.js - Job categories → Job records: uses categories
- Bidding → Bid records: manages bids
services/bid-service/src/routes/bids.js - Bidding → Bid job client: fetches and updates jobs
services/bid-service/src/routes/bids.js - Bidding → Bid user client: fetches users
services/bid-service/src/routes/bids.js - Bid job client → Job listings: requests job data
services/bid-service/src/clients/jobServiceClient.js - Bid user client → User profiles: requests user data
services/bid-service/src/clients/userServiceClient.js - Bidding → RabbitMQ events: publishes events
- Payment processing → Payment records: records payments
- Payment processing → Payment service clients: calls service clients
- Payment service clients → Bidding: requests bid data
- Payment service clients → Job listings: requests job data
- Payment processing → Razorpay: processes payment
- Payment processing → RabbitMQ events: publishes events
- Event consumer → SMS handlers: dispatches notifications
services/notification-service/src/consumer.js - SMS handlers → Twilio SMS: sends SMS
services/notification-service/src/handlers/smsHandler.js - OTP and sessions → MongoDB: persists identity data
- User profiles → MongoDB: persists profiles
- Job listings → MongoDB: persists listings
- Bidding → MongoDB: persists bids
- Payment processing → MongoDB: persists payments
- Nginx gateway → Redis cache: uses cache