How johnnmichael029/sandigan-carwash-car-rental works
Sandigan is a car-wash, rental, and business-operations platform with a web admin/employee interface, public booking, and a mobile app. Its main workflow sends bookings through the API into operational records, with customer notifications and email; administrative branches cover CRM, inventory, finance, HR, and operations. The excerpts show only selected routes and integrations, so unsampled feature links are omitted rather than inferred.
Main entry points: server.js API server · bookingController.js Booking workflow · App.jsx Web application · carRentalController.js Rental workflow
Components 22
Customer and staff apps
- Web application
frontend/src/App.jsx - Admin modules
frontend/src/components/admin - Public booking
frontend/src/pages/public/Book.jsx - Mobile app
mobile/App.js
API and access
- API server
backend/server.js - API routes
backend/routes - Booking routes
backend/routes/bookingRoutes.js
Bookings and rentals
- Booking workflow
backend/controllers/bookingController.js - Booking records
backend/models/bookingModel.js - Rental workflow
backend/controllers/carRentalController.js - Rental records
backend/models/carRentalModel.js - Transactional email
backend/utils/emailService.js
Business operations
- CRM
backend/controllers/crmController.js - Customer records
backend/models/customerModel.js - Promotion manager
frontend/src/components/admin/crm/PromotionManager.jsx - Finance
backend/routes/financeRoutes.js - Inventory management
frontend/src/components/admin/inventory/InventoryManager.jsx - Service settings
frontend/src/components/admin/inventory/ServiceManager.jsx - Payroll
backend/controllers/payrollController.js - Activity logging
backend/controllers/activityLogController.js
Other components
- Customer
- Admin and staff
Connections 18
- Customer → Public booking: books through
- Admin and staff → Web application: uses
- Web application → Admin modules: renders modules
- Web application → Public booking: routes to
frontend/src/App.jsx - Mobile app → API server: sends API requests
- API server → API routes: mounts
backend/server.js - API routes → Booking routes: includes
backend/server.js - Booking routes → Booking workflow: dispatches to
backend/routes/bookingRoutes.js - Booking workflow → Booking records: reads and writes
backend/controllers/bookingController.js - Booking workflow → Transactional email: sends confirmation
backend/controllers/bookingController.js - Rental workflow → Rental records: reads and writes
backend/controllers/carRentalController.js - Rental workflow → Transactional email: sends email
backend/controllers/carRentalController.js - CRM → Customer records: reads and writes
backend/controllers/crmController.js - Promotion manager → API server: calls API
- Finance → API server: mounted by
backend/server.js - Service settings → API server: requests pricing API
- Payroll → Activity logging: creates logs
backend/controllers/payrollController.js - Booking workflow → Activity logging: creates logs
backend/controllers/bookingController.js