How alokkgupta28/urbanfix works
UrbanFix is a home-services marketplace: customers discover categories and professionals, book services, pay, then manage bookings and leave reviews; providers and admins have separate management workflows. The React client uses a Spring Boot REST API backed by PostgreSQL, with JWT authentication and Razorpay payments. The graph preserves documented capabilities even where their implementations were not sampled; specific backend links are shown only where excerpts or the README support them.
Main entry points: queries.ts Query Cache · controller Spring REST API · api.ts API Client · AuthService.java Authentication Services
Components 26
Customer Experience
- Service Discovery
src/routes/index.tsx - Service Catalog
src/routes/services.index.tsx - Service Details
src/routes/services.$slug.tsx - Provider Profile
src/routes/providers.$id.tsx - Query Cache
src/lib/queries.ts - API Client
src/lib/api.ts - Sign-in and Registration
src/routes/auth.tsx - Session State
src/lib/session.tsx
Booking and Operations
- Booking Flow
src/routes/book.$providerId.tsx - Payment Checkout
src/routes/checkout.$bookingId.tsx - Booking Management
src/routes/bookings.index.tsx - Booking Detail
src/routes/bookings.$id.tsx - Customer Account
src/routes/account.tsx - Provider Dashboard
src/routes/provider.tsx - Admin Dashboard
src/routes/admin.tsx
Backend Services
- Spring REST API
backend/src/main/java/com/urbanfix/controller - Booking Services
backend/src/main/java/com/urbanfix/service/BookingService.java - Razorpay Payments
backend/src/main/java/com/urbanfix/service/RazorpayService.java - Review Services
backend/src/main/java/com/urbanfix/service/ReviewService.java - Authentication Services
backend/src/main/java/com/urbanfix/service/AuthService.java
Identity and Data
- JWT Security
backend/src/main/java/com/urbanfix/security/JwtService.java - JPA Repositories
backend/src/main/java/com/urbanfix/repository - PostgreSQL
- Uploaded Files
backend/src/main/java/com/urbanfix/service/LocalStorageService.java
Other components
- Customer
- Razorpay Gateway
Connections 30
- Customer → Service Discovery: browses
README.md - Service Discovery → Query Cache: loads listings
src/routes/index.tsx - Service Catalog → Query Cache: loads catalog
src/routes/services.index.tsx - Service Details → Query Cache: loads services
src/routes/services.$slug.tsx - Query Cache → API Client: requests data
src/lib/queries.ts - Customer → Sign-in and Registration: signs in
README.md - Sign-in and Registration → Session State: updates session
src/routes/auth.tsx - Session State → API Client: validates session
src/lib/session.tsx - Customer → Provider Profile: views professional
README.md - Customer → Booking Flow: books service
README.md - Booking Flow → API Client: submits booking
- Customer → Payment Checkout: pays online
README.md - Payment Checkout → API Client: requests payment
- Customer → Booking Management: manages bookings
README.md - Booking Management → Query Cache: loads bookings
src/lib/queries.ts - Booking Detail → Query Cache: loads booking
src/lib/queries.ts - Customer Account → Query Cache: loads profile
- Provider Dashboard → Query Cache: loads provider data
src/lib/queries.ts - Admin Dashboard → Query Cache: loads admin data
src/lib/queries.ts - API Client → Spring REST API: calls REST API
README.md - Spring REST API → Booking Services: delegates bookings
backend/src/main/java/com/urbanfix/controller/BookingController.java - Spring REST API → Review Services: delegates reviews
backend/src/main/java/com/urbanfix/controller/ReviewController.java - Spring REST API → Authentication Services: delegates authentication
README.md - Booking Services → Razorpay Payments: coordinates payment
- Razorpay Payments → Razorpay Gateway: creates and verifies
README.md - Review Services → JPA Repositories: reads and writes reviews
backend/src/main/java/com/urbanfix/service/ReviewService.java - Authentication Services → JWT Security: generates tokens
backend/src/main/java/com/urbanfix/service/AuthService.java - Authentication Services → JPA Repositories: persists identities
backend/src/main/java/com/urbanfix/service/AuthService.java - JPA Repositories → PostgreSQL: reads and writes
README.md - Spring REST API → Uploaded Files: stores uploads