Premium bus booking platform for Kenya โ landing page, customer panel, full admin panel, M-Pesa & card payments, visual seat selection.
| Page | URL |
|---|---|
| Landing Page | https://promise_luxury--019f287ed61774169a40abfff66213ec.web.val.run |
| Customer Login/Register | https://promise_luxury--019f287ed61774169a40abfff66213ec.web.val.run/login.html |
| Customer Dashboard (Book + Pay) | https://promise_luxury--019f287ed61774169a40abfff66213ec.web.val.run/dashboard.html |
| Admin Panel | https://promise_luxury--019f287ed61774169a40abfff66213ec.web.val.run/admin.html |
- Email: admin@promise.co.ke
- Password: admin123
- Sidebar layout with Overview, Routes, Bookings, Customers, Settings
- KPI Dashboard: Total revenue, pending revenue, bookings, customers, paid bookings, active routes, today's bookings
- Booking Management: Verify payments, cancel bookings, search & filter by status/payment
- Customer Management: View customers with booking counts, search by name/email/phone, delete customers
- Route Management: Add, edit (inline), and delete routes with bus type selection
- Payment Settings: Configure M-Pesa phone/till, bank account details
- Register & login
- 3-step booking: Route & Date โ Visual Seat Selection โ Payment
- M-Pesa STK Push payment (enter phone, get prompt on your phone)
- Card/Bank Transfer payment (see admin's bank details)
- View booking history with payment status
- Luxury bus photo gallery (branded "Promise Luxury")
- Popular routes, features, CTA
For real M-Pesa STK push (currently in demo mode), set these env vars:
๐ Add MPESA_CONSUMER_KEY here: https://www.val.town/x/promise_luxury/promise-luxury/environment-variables?key=MPESA_CONSUMER_KEY ๐ Add MPESA_CONSUMER_SECRET here: https://www.val.town/x/promise_luxury/promise-luxury/environment-variables?key=MPESA_CONSUMER_SECRET ๐ Add MPESA_SHORTCODE here: https://www.val.town/x/promise_luxury/promise-luxury/environment-variables?key=MPESA_SHORTCODE ๐ Add MPESA_PASSKEY here: https://www.val.town/x/promise_luxury/promise-luxury/environment-variables?key=MPESA_PASSKEY
Get these from https://developer.safaricom.co.ke (Daraja API portal).
serve.tsโ Hono HTTP handler: API routes + static file servingdb.tsโ SQLite database (schema, queries, seeding, settings, stats)auth.tsโ Session/cookie-based authenticationindex.htmlโ Landing page with bus gallerylogin.htmlโ Customer login/registerdashboard.htmlโ 3-step booking flow with bus seat map + paymentadmin.htmlโ Full admin panel with sidebar, KPIs, booking/customer managementstyles.cssโ Shared styles + admin layout