A comprehensive booking and management system for Protyre tyre service centers.
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema
│ │ └── queries.ts # Database operations
│ ├── routes/
│ │ ├── bookings.ts # Booking management
│ │ ├── admin.ts # Admin operations
│ │ └── notifications.ts # SMS/Email handling
│ └── index.ts # Main API server
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main app component
│ │ ├── BookingForm.tsx # Customer booking interface
│ │ ├── AdminPanel.tsx # Admin dashboard
│ │ └── Dashboard.tsx # Summary dashboard
│ ├── index.html # Main HTML template
│ ├── index.tsx # Frontend entry point
│ └── style.css # Custom styles
└── shared/
└── types.ts # Shared TypeScript types
Set these in your Val Town environment:
TWILIO_ACCOUNT_SID - For SMS notificationsTWILIO_AUTH_TOKEN - For SMS authenticationTWILIO_PHONE_NUMBER - Your Twilio phone number//admin/dashboardGET /api/branches - Get all branch locationsGET /api/services - Get available servicesGET /api/availability - Get available time slotsPOST /api/bookings - Create new bookingGET /api/admin/bookings - Get all bookingsGET /api/admin/technicians - Get technician availabilityPOST /api/admin/slots - Manage time slotsGET /api/admin/dashboard - Get dashboard data