How tanishqsoni0/skipbin works
Jerry’s Bins is a skip-bin hire and booking service with a customer-facing website and an admin operations console. Customers browse hire options, obtain pricing and submit bookings; account access, payment, and invoice/account functions support that journey. Administrators manage bookings, scheduling, customers, and catalogue data. The graph combines sampled route/service behavior with the frontend routes and product areas listed in the tree; unsampled capability links are omitted where their runtime wiring is not evidenced.
Main entry points: app.py Flask app and routes · db.py MySQL persistence · admin_auth_routes.py Admin authentication · booking_routes.py Booking and invoices
Components 26
Customer website
- Web app routing
frontend/src/App.jsx - Booking experience
frontend/src/pages/BookingWebsite.jsx - Account and invoices
frontend/src/pages/MyAccount.jsx
Identity and access
- Customer auth client
frontend/src/services/authService.js - Customer authentication
backend/routes/auth_routes.py - Admin authentication
backend/routes/admin_auth_routes.py - Admin access guard
backend/utils/decorators.py
Hire and payment
- Booking and invoices
backend/routes/booking_routes.py - Pricing and loyalty
backend/services/pricing_service.py - PayPal checkout
backend/routes/paypal_routes.py - PayPal integration
backend/services/paypal_service.py - Postcode services
backend/services/postcode_service.py
Admin operations
- Admin console
frontend/src/pages/Dashboard.jsx - Customer management
backend/routes/customer_routes.py - Scheduling calendar
backend/routes/calendar_routes.py - Hire catalogue
backend/routes/bin_routes.py - Waste types
backend/routes/waste_routes.py - Promotions
backend/routes/promotion_routes.py - Commercial quotes
backend/routes/commercial_quote_routes.py
Backend foundation
- API client
frontend/src/services/api.js - Flask app and routes
backend/app.py - MySQL persistence
backend/database/db.py - Input validation
backend/utils/validators.py - Async tasks
backend/services/async_tasks.py - Metrics
backend/services/metrics_service.py
Other components
- Customer
Connections 39
- Customer → Web app routing: uses
frontend/src/App.jsx - Web app routing → Booking experience: routes to
frontend/src/App.jsx - Web app routing → Account and invoices: routes to
frontend/src/App.jsx - Booking experience → API client: requests
- Account and invoices → Customer auth client: uses
frontend/src/pages/MyAccount.jsx - Account and invoices → API client: requests
frontend/src/pages/MyAccount.jsx - Customer auth client → API client: requests
frontend/src/services/authService.js - API client → Flask app and routes: calls API
- Flask app and routes → Customer authentication: registers
backend/app.py - Flask app and routes → Booking and invoices: registers
backend/app.py - Flask app and routes → Admin authentication: registers
backend/app.py - Flask app and routes → PayPal checkout: registers
backend/app.py - Flask app and routes → Customer management: registers
backend/app.py - Flask app and routes → Scheduling calendar: registers
backend/app.py - Flask app and routes → Hire catalogue: registers
backend/app.py - Flask app and routes → Waste types: registers
backend/app.py - Flask app and routes → Promotions: registers
backend/app.py - Flask app and routes → Commercial quotes: registers
backend/app.py - Customer authentication → MySQL persistence: reads/writes
backend/routes/auth_routes.py - Admin authentication → MySQL persistence: reads/writes
backend/routes/admin_auth_routes.py - Admin authentication → Async tasks: queues email
backend/routes/admin_auth_routes.py - Admin authentication → Admin access guard: uses
backend/routes/admin_auth_routes.py - Booking and invoices → Pricing and loyalty: calculates price
backend/routes/booking_routes.py - Booking and invoices → MySQL persistence: reads/writes
backend/routes/booking_routes.py - Pricing and loyalty → MySQL persistence: reads pricing
backend/services/pricing_service.py - Pricing and loyalty → Postcode services: gets delivery charge
backend/services/pricing_service.py - PayPal checkout → Pricing and loyalty: calculates price
backend/routes/paypal_routes.py - PayPal checkout → PayPal integration: payment operations
backend/routes/paypal_routes.py - PayPal checkout → MySQL persistence: reads/writes
backend/routes/paypal_routes.py - Customer management → MySQL persistence: reads/writes
backend/routes/customer_routes.py - Scheduling calendar → MySQL persistence: reads/writes
backend/routes/calendar_routes.py - Hire catalogue → MySQL persistence: reads/writes
backend/routes/bin_routes.py - Waste types → MySQL persistence: reads/writes
backend/routes/waste_routes.py - Promotions → MySQL persistence: reads/writes
backend/routes/promotion_routes.py - Commercial quotes → MySQL persistence: reads/writes
backend/routes/commercial_quote_routes.py - Customer management → Input validation: validates
backend/routes/customer_routes.py - Booking and invoices → Input validation: validates
backend/routes/booking_routes.py - Flask app and routes → Metrics: initializes
backend/app.py - Customer → Admin console: admin use