A unified booking system for buses, trains, domestic flights and parcels in Kenya. Integrated with the gps and chatbot.
# π SmartTravels β Kenya's Unified Transport Booking Platform
A full-stack Django system integrating **Bus Β· Train Β· Flight** bookings, live GPS tracking,
M-Pesa payments, dynamic seat allocation, parcel delivery, QR tickets, and admin dashboards.
---
## β‘ Quick Start (2 steps)
### 1. Install Python 3.10β3.12
Download:
python.org
### 2. Run
```bash
cd smarttravels
python run.py
```
Open **
http://127.0.0.1:8000**
> No pip install needed β all dependencies are bundled in the `/lib` folder.
---
## π Test Accounts
| Role | Username | Password | Dashboard |
|----------------|----------------|-----------------|----------------------------------|
| System Admin | `admin` | `Admin1234!` | /systemadmin/dashboard/ |
| Bus Admin | `bus_admin` | `BusAdmin1!` | /buses/dashboard/ |
| Train Admin | `train_admin` | `TrainAdmin1!` | /trains/dashboard/ |
| Flight Admin | `flight_admin` | `FlightAdmin1!` | /flights/dashboard/ |
| Driver | `driver01` | `Driver1234!` | /drivers/dashboard/ |
| Passenger | `passenger` | `Pass1234!` | /accounts/dashboard/ |
Login at: **
127.0.0.1
---
## π Project Structure
```
smarttravels/ β Django project root
β
βββ run.py β ONE-CLICK START SCRIPT
βββ manage.py
βββ db.sqlite3 β SQLite database (auto-created)
βββ requirements.txt
β
βββ smarttravels/
β βββ settings.py β All config (DB, M-Pesa, static)
β βββ urls.py β Root URL routing
β
βββ apps/
β βββ accounts/ β Auth, login, register, unified booking view
β β βββ views.py β dashboard_view, book_trip, passenger_seat_layout,
β β download_ticket (PDF with QR)
β β
β βββ systemadmin/ β System Admin: full control
β β¦