How sumitsurwase06-code/homefix works
HomeFix is a home-services marketplace connecting customers with technicians, with administrative oversight. The customer journey is service discovery and technician selection, booking, technician job handling, and—when needed—customer approval of a revised price. The frontend also exposes authentication and role-specific customer, technician, and admin areas. Backend excerpts show booking and price-change services, while the source index identifies supporting persistence, dashboard, and verification capabilities. Several subsystems are represented from the file tree or index; their internal links are omitted where no relationship was shown.
Main entry points: AppRoutes.jsx Role-based routes · BookingService.java Booking lifecycle · PriceChangeService.java Price revisions · repository Persistence repositories
Components 24
Web application
- Role-based routes
homefix-frontend/src/routes/AppRoutes.jsx - Service discovery
homefix-frontend/src/pages/public/Services.jsx - Service catalog
homefix-frontend/src/data/services.js - Booking flow
homefix-frontend/src/pages/customer/BookService.jsx - Authentication state
homefix-frontend/src/context/AuthContext.jsx - API client
homefix-frontend/src/services/api.js - Customer workspace
homefix-frontend/src/pages/customer - Technician workspace
homefix-frontend/src/pages/technician - Admin workspace
homefix-frontend/src/pages/admin
Marketplace backend
- Customer endpoints
backend/src/main/java/com/homefix/controller/CustomerController.java - Technician endpoints
backend/src/main/java/com/homefix/controller/TechnicianController.java - Booking lifecycle
backend/src/main/java/com/homefix/service/BookingService.java - Price revisions
backend/src/main/java/com/homefix/service/PriceChangeService.java - Registration and login
backend/src/main/java/com/homefix/service/AuthService.java - Spring REST API
backend/src/main/java/com/homefix/controller
Marketplace data
- Marketplace entities
backend/src/main/java/com/homefix/entity - Persistence repositories
backend/src/main/java/com/homefix/repository - Booking response DTO
backend/src/main/java/com/homefix/dto/BookingResponse.java - Price response DTO
backend/src/main/java/com/homefix/dto/PriceChangeResponseDto.java
Administration
- Dashboard aggregation
backend/src/main/java/com/homefix/service/AdminDashboardService.java - Technician verification
backend/src/main/java/com/homefix/service/TechnicianVerificationService.java
Other components
- Customer
- Technician
- Administrator
Connections 27
- Customer → Role-based routes: opens app
- Technician → Role-based routes: opens app
- Administrator → Role-based routes: opens app
- Role-based routes → Service discovery: routes to
homefix-frontend/src/routes/AppRoutes.jsx - Role-based routes → Customer workspace: routes to
homefix-frontend/src/routes/AppRoutes.jsx - Role-based routes → Technician workspace: routes to
homefix-frontend/src/routes/AppRoutes.jsx - Role-based routes → Admin workspace: routes to
homefix-frontend/src/routes/AppRoutes.jsx - Service discovery → Service catalog: reads catalog
homefix-frontend/src/pages/public/Services.jsx - Booking flow → Service catalog: reads catalog
homefix-frontend/src/pages/customer/BookService.jsx - Booking flow → API client: calls API
homefix-frontend/src/pages/customer/BookService.jsx - Authentication state → API client: calls auth API
homefix-frontend/src/context/AuthContext.jsx - Customer endpoints → Booking lifecycle: calls
backend/src/main/java/com/homefix/controller/CustomerController.java - Customer endpoints → Price revisions: calls
backend/src/main/java/com/homefix/controller/CustomerController.java - Technician endpoints → Booking lifecycle: calls
backend/src/main/java/com/homefix/controller/TechnicianController.java - Technician endpoints → Price revisions: calls
backend/src/main/java/com/homefix/controller/TechnicianController.java - Booking lifecycle → Persistence repositories: reads and writes
backend/src/main/java/com/homefix/service/BookingService.java - Price revisions → Persistence repositories: reads and writes
backend/src/main/java/com/homefix/service/PriceChangeService.java - Booking lifecycle → Marketplace entities: creates booking
backend/src/main/java/com/homefix/service/BookingService.java - Price revisions → Marketplace entities: updates proposal
backend/src/main/java/com/homefix/service/PriceChangeService.java - Booking lifecycle → Booking response DTO: builds response
backend/src/main/java/com/homefix/service/BookingService.java - Price revisions → Price response DTO: builds response
backend/src/main/java/com/homefix/service/PriceChangeService.java - Registration and login → Persistence repositories: persists accounts
backend/src/main/java/com/homefix/service/AuthService.java - Registration and login → Marketplace entities: creates profiles
backend/src/main/java/com/homefix/service/AuthService.java - Dashboard aggregation → Persistence repositories: aggregates data
backend/src/main/java/com/homefix/service/AdminDashboardService.java - API client → Spring REST API: sends HTTP requests
- Admin workspace → Dashboard aggregation: requests dashboard
- Admin workspace → Technician verification: reviews technicians