How ehsanulhaque1/home-service-hub works
Home Service Hub is a two-sided home-services marketplace: customers post jobs, workers discover and apply, customers select a worker and follow progress, then pay after completion. The graph preserves the documented account, worker, task, messaging, feedback/reporting, admin, and AI-assistant capabilities. Some feature routes and their wiring are unsampled; those branches are represented at the supported directory level without speculative call chains.
Main entry points: App.jsx Route application · api.php API routing · database.php Application database · RagService.php RAG assistant service
Components 33
Web experience
- Route application
packages/frontend/src/App.jsx - Browse and post tasks
packages/frontend/src/pages/BrowseTasks.jsx - Task dashboards
packages/frontend/src/pages/Dashboard.jsx - Worker directory
packages/frontend/src/pages/Workers.jsx - Chat interface
packages/frontend/src/pages/Chat.jsx - Account screens
packages/frontend/src/pages/SignIn.jsx - Profile screens
packages/frontend/src/pages/Profile.jsx - Admin panel
packages/frontend/src/pages/AdminPanel.jsx - Feedback and reports
packages/frontend/src/pages/Feedback.jsx - AI assistant
packages/frontend/src/components/AIChatbot.jsx
Marketplace operations
- Task management
packages/backend/app/Http/Controllers/TaskController.php - Worker applications
packages/backend/app/Http/Controllers/TaskApplicationController.php - Payments
packages/backend/app/Http/Controllers/PaymentController.php - SSLCommerz service
packages/backend/app/Services/SslCommerz.php - Worker services
packages/backend/app/Http/Controllers/WorkerController.php
Support and intelligence
- Messaging
packages/backend/app/Http/Controllers/ChatController.php - Feedback and complaints
packages/backend/app/Http/Controllers/FeedbackController.php - Worker complaints
packages/backend/app/Http/Controllers/ComplaintController.php - RAG assistant service
packages/backend/app/Services/RagService.php - Knowledge chunks
packages/backend/app/Models/AiKnowledgeChunk.php - Knowledge ingestion
packages/backend/app/Console/Commands/AiIngest.php
Accounts and persistence
- HTTP client
packages/frontend/src/lib/api.js - Authentication state
packages/frontend/src/context/AuthContext.jsx - API routing
packages/backend/routes/api.php - Authentication
packages/backend/app/Http/Controllers/AuthController.php - Account and profile
packages/backend/app/Http/Controllers/AccountController.php - Application database
packages/backend/config/database.php
Other components
- Customer
- Service worker
- Administrator
- Google Gemini
- SSLCommerz gateway
- Marketplace visitor
Connections 45
- Marketplace visitor → Route application: opens
- Customer → Route application: uses
- Service worker → Route application: uses
- Administrator → Route application: uses
- Route application → Browse and post tasks: routes to
- Route application → Task dashboards: routes to
- Route application → Worker directory: routes to
- Route application → Chat interface: routes to
- Route application → Account screens: routes to
- Route application → Profile screens: routes to
- Route application → Admin panel: routes to
- Route application → Feedback and reports: routes to
- Route application → AI assistant: renders
- Account screens → Authentication state: uses
- Route application → Authentication state: checks role
- Browse and post tasks → HTTP client: requests tasks
- HTTP client → API routing: sends API requests
- API routing → Task management: dispatches task routes
- API routing → Worker applications: dispatches application routes
- API routing → Authentication: dispatches auth routes
- API routing → Payments: dispatches payment routes
- API routing → Worker services: dispatches worker routes
- API routing → Messaging: dispatches chat routes
- API routing → Account and profile: dispatches account routes
- API routing → Feedback and complaints: dispatches feedback routes
- API routing → Worker complaints: dispatches complaint routes
- Task management → Worker applications: reads applicants
- Task management → Application database: reads and writes
- Worker applications → Application database: reads and writes
- Payments → Application database: reads and writes
- Payments → SSLCommerz service: initiates and validates
- SSLCommerz service → SSLCommerz gateway: requests payment
- Worker services → Application database: reads worker data
- Messaging → Application database: reads and writes
- Account and profile → Application database: reads and writes
- Authentication → Application database: reads and writes
- Feedback and complaints → Application database: writes feedback
- Worker complaints → Application database: writes complaints
- AI assistant → HTTP client: sends questions
- API routing → RAG assistant service: dispatches AI requests
- RAG assistant service → Knowledge chunks: retrieves chunks
- RAG assistant service → Google Gemini: embeds and generates
- Knowledge chunks → Application database: stores embeddings
- Knowledge ingestion → RAG assistant service: chunks and ingests
- RAG assistant service → Knowledge chunks: stores chunks