How rajshekharbind/workforce works
Kaam Karao is a labor-booking and dispatch marketplace. Customers discover trades and estimate costs, submit a service request, and view its status; dispatchers review requests and update their status, while workers execute the job and customers inspect and pay on completion. The sampled routes show booking persistence, tracking, and authentication backed by MongoDB. README-documented dispatch, warranty, and informational capabilities are included, but worker assignment and execution have no implementation path in the supplied tree; those links are documented rather than verified in source.
Main entry points: mongodb.js MongoDB · bookings/route.js Booking API · page.js Dispatcher console · [id]/route.js Booking operations API
Components 22
Service discovery
- Home discovery
src/app/page.js - Trade catalog
src/app/services/page.js - Service information
src/app/about/page.js - Help and contact
src/app/faq/page.js - Contact support
src/app/contact/page.js
Booking lifecycle
- Booking page
src/app/bookings/page.js - Estimate and request
src/app/bookings/form.js - Booking API
src/app/api/bookings/route.js - Booking tracker
src/app/bookings/[id]/page.js
Dispatch and execution
- Booking operations API
src/app/api/bookings/[id]/route.js - Dispatcher console
src/app/admin/page.js - Assigned worker
- Work and warranty
Account access
- Sign-in page
src/app/login/page.js - Registration page
src/app/signup/page.js - Login API
src/app/api/auth/login/route.js - Signup API
src/app/api/auth/signup/route.js
Shared platform
- MongoDB
src/lib/mongodb.js - Site shell
src/app/layout.js - Navigation
src/components/Navbar.js - Footer
src/components/Footer.js
Other components
- Customer
Connections 24
- Customer → Home discovery: browses
README.md - Customer → Trade catalog: browses
README.md - Home discovery → Booking page: starts booking
README.md - Trade catalog → Booking page: starts booking
README.md - Booking page → Estimate and request: renders
src/app/bookings/page.js - Estimate and request → Booking API: submits request
src/app/bookings/form.js - Booking API → MongoDB: inserts and lists
src/app/api/bookings/route.js - Booking API → Booking tracker: returns booking ID
README.md - Booking tracker → MongoDB: reads booking
src/app/bookings/[id]/page.js - Dispatcher console → Booking API: reviews bookings
README.md - Dispatcher console → Booking operations API: updates status
README.md - Booking operations API → MongoDB: updates and deletes
src/app/api/bookings/[id]/route.js - Booking operations API → Booking tracker: status appears
README.md - Dispatcher console → Assigned worker: matches worker
README.md - Assigned worker → Work and warranty: executes job
README.md - Work and warranty → Customer: inspection and payment
README.md - Customer → Sign-in page: signs in
README.md - Customer → Registration page: registers
README.md - Sign-in page → Login API: authenticates
- Registration page → Signup API: registers
- Login API → MongoDB: reads users
src/app/api/auth/login/route.js - Signup API → MongoDB: stores users
src/app/api/auth/signup/route.js - Site shell → Navigation: renders
src/app/layout.js - Site shell → Footer: renders
src/app/layout.js