How ravimahto69/carwash works
WashHub is a car-wash booking and management platform. Its main customer journey is to discover services and locations, create a booking, pay, track booking status, and leave a review; administrators manage bookings, services, stores, payments, and reviews. The map groups the app-facing components, API domains, persistence layer, and Razorpay integration. README capabilities inform the workflow; dashed edges mark client/API or gateway connections not shown in the sampled source.
Main entry points: db.js MongoDB Connection · verify/route.js Payment Operations · reviews/route.js Review Operations · bookings/route.js Admin Bookings
Components 27
Customer and Admin Experience
- Service Browsing
src/app/component/Services.jsx - Booking
src/app/component/Book.jsx - Payment
src/app/component/Payment.jsx - Booking Status
src/app/component/BookingConfirmation.jsx - Reviews
src/app/component/ReviewSection.jsx - User Profile
src/app/component/UserProfile.jsx - Admin Dashboard
src/app/component/Admin.jsx - Nearby Stores
src/app/component/NearbyStores.jsx
Application API
- Authentication
src/app/api/register/route.js - Service Management
src/app/api/services/route.js - Booking Management
src/app/api/booking/route.js - Payment Operations
src/app/api/payment/verify/route.js - Review Operations
src/app/api/reviews/route.js - Store Discovery
src/app/api/stores/nearby/route.js - Admin Bookings
src/app/api/admin/bookings/route.js - User Account APIs
src/app/api/user/profile/route.js
Persistence
- MongoDB Connection
src/app/lib/db.js - User Records
src/app/models/User.js - Booking Records
src/app/models/Booking.js - Payment Records
src/app/models/Payment.js - Service Records
src/app/models/Service.js - Review Records
src/app/models/Review.js - Store Records
src/app/models/Store.js - Contact Records
src/app/models/Contact.js
External Integrations
- Razorpay
Other components
- Customer
- Admin
Connections 35
- Customer → Service Browsing: browses
README.md - Customer → Booking: books service
README.md - Customer → Payment: pays securely
README.md - Customer → Booking Status: tracks booking
README.md - Customer → Reviews: leaves review
README.md - Customer → Nearby Stores: finds locations
README.md - Admin → Admin Dashboard: manages operations
README.md - Service Browsing → Service Management: requests services
- Booking → Booking Management: submits booking
- Payment → Payment Operations: starts payment
- Booking Status → Booking Management: checks status
- Reviews → Review Operations: submits reviews
- Nearby Stores → Store Discovery: searches stores
- User Profile → User Account APIs: updates account
- Admin Dashboard → Admin Bookings: manages bookings
- Authentication → MongoDB Connection: connects
src/app/api/register/route.js - Authentication → User Records: creates user
src/app/api/register/route.js - Service Management → MongoDB Connection: connects
src/app/api/services/route.js - Service Management → Service Records: reads and writes
src/app/api/services/route.js - Booking Management → MongoDB Connection: connects
src/app/api/booking/route.js - Booking Management → Booking Records: reads and writes
src/app/api/booking/route.js - Payment Operations → Payment Records: updates payment
src/app/api/payment/verify/route.js - Payment Operations → Booking Records: updates booking
src/app/api/payment/verify/route.js - Payment Operations → MongoDB Connection: connects
src/app/api/payment/verify/route.js - Payment Operations → Razorpay: verifies payment
- Review Operations → MongoDB Connection: connects
src/app/api/reviews/route.js - Review Operations → Review Records: reads and writes
src/app/api/reviews/route.js - Review Operations → Booking Records: populates booking
src/app/api/reviews/route.js - Store Discovery → MongoDB Connection: connects
src/app/api/stores/nearby/route.js - Store Discovery → Store Records: queries stores
src/app/api/stores/nearby/route.js - Admin Bookings → MongoDB Connection: connects
src/app/api/admin/bookings/route.js - Admin Bookings → Booking Records: manages bookings
src/app/api/admin/bookings/route.js - Admin Bookings → Payment Records: reads payments
src/app/api/admin/bookings/route.js - User Account APIs → MongoDB Connection: connects
src/app/api/user/profile/route.js - User Account APIs → User Records: updates profile
src/app/api/user/profile/route.js