How saurabhhdubey/do-it works
Do-It is a home-services booking platform with customer authentication, service selection, a persistent cart, and checkout, alongside vendor registration/status and admin management. The frontend route table and sampled backend routes/controllers establish much of the flow; checkout completion and several listed screens are only represented by their paths. The available README provides no usable capability detail, so unsampled behavior and frontend-to-backend wiring are kept limited or unverified.
Main entry points: main.jsx App routes · admin.routes.js Admin routes · auth.router.js Auth routes · vendor.routes.js Vendor routes
Components 24
Customer experience
- App routes
frontend/src/main.jsx - Service discovery
frontend/src/components/Home.jsx - Service booking pages
frontend/src/components - Booking cart
frontend/src/redux/slices/cartSlice.js - Checkout
frontend/src/components/Checkout.jsx
Identity and access
- Login and registration
frontend/src/components - Auth API client
frontend/src/api/authAPI.js - Auth state
frontend/src/redux/slices/authSlice.js - Auth routes
backend/router/auth.router.js - Auth handlers
backend/controllers/auth.controllers.js - Token verification
backend/middleware/auth.middleware.js
Vendor and admin operations
- Vendor screens
- Vendor API client
frontend/src/api/vendorAPI.js - Vendor routes
backend/router/vendor.routes.js - Vendor handlers
backend/controllers/vendor.controllers.js - Admin dashboard
frontend/src/components/admin/AdminDashboard.jsx - Admin API client
frontend/src/api/adminAPI.js - Admin routes
backend/router/admin.routes.js - Admin handlers
backend/controllers/admin.controllers.js - Admin authorization
backend/middleware/admin.middleware.js
Backend data
- API server
backend/server.js - User records
backend/models/user.model.js - Vendor records
backend/models/vendor.model.js
Other components
- Customer
Connections 29
- Customer → App routes: opens
frontend/src/main.jsx - App routes → Service discovery: routes to
frontend/src/main.jsx - App routes → Service booking pages: routes to
frontend/src/main.jsx - App routes → Checkout: routes to
frontend/src/main.jsx - App routes → Login and registration: routes to
frontend/src/main.jsx - Service booking pages → Booking cart: updates
frontend/src/components/AcRepair.jsx - Service discovery → Vendor API client: uses
frontend/src/components/Home.jsx - Login and registration → Auth API client: calls
frontend/src/components/Login.jsx - Login and registration → Auth state: updates
frontend/src/components/Login.jsx - Auth API client → Auth routes: HTTP requests
- Vendor screens → Vendor API client: uses
- Vendor API client → Vendor routes: HTTP requests
- Admin dashboard → Admin API client: calls
frontend/src/components/admin/AdminDashboard.jsx - Admin API client → Admin routes: HTTP requests
- API server → Auth routes: mounts
backend/server.js - API server → Vendor routes: mounts
backend/server.js - API server → Admin routes: mounts
backend/server.js - Auth routes → Auth handlers: dispatches
backend/router/auth.router.js - Auth routes → Token verification: protects profile
backend/router/auth.router.js - Auth handlers → User records: reads and creates
backend/controllers/auth.controllers.js - Token verification → User records: loads user
backend/middleware/auth.middleware.js - Vendor routes → Token verification: protects routes
backend/router/vendor.routes.js - Vendor routes → Vendor handlers: dispatches
backend/router/vendor.routes.js - Vendor handlers → Vendor records: reads and creates
backend/controllers/vendor.controllers.js - Admin routes → Token verification: protects routes
backend/router/admin.routes.js - Admin routes → Admin authorization: checks role
backend/router/admin.routes.js - Admin routes → Admin handlers: dispatches
backend/router/admin.routes.js - Admin handlers → User records: queries and updates
backend/controllers/admin.controllers.js - Admin handlers → Vendor records: queries and updates
backend/controllers/admin.controllers.js