The SGR Online Ticket Booking System is a full-stack web application developed to modernize the ticket booking process for Tanzania's railway system
# SGR Online Ticket Booking System
A comprehensive web-based ticket booking system for Tanzania's Standard Gauge Railway (SGR) that allows customers to book train tickets online and administrators to manage all bookings efficiently.
## Project Overview
The SGR Online Ticket Booking System is a full-stack web application developed to modernize the ticket booking process for Tanzania's railway system. It eliminates long queues at physical stations by providing a seamless online platform where customers can book tickets, calculate fares based on routes and classes, and retrieve their tickets using a unique booking reference. The system includes an administrative dashboard for managing bookings and monitoring revenue.
## Key Features
### Customer Features
- Instant Ticket Booking - Book tickets with just a few clicks
- Dynamic Fare Calculator - Automatic pricing based on route, class, and passenger type
- Ticket Retrieval - View/download tickets using booking reference number
- Multiple Travel Classes - First Class, Second Class, Economy, and Lower Class
- Family Booking - Separate pricing for adults and children (50% child discount)
- Printable Tickets - Print or save tickets as PDF
- Responsive Design - Works perfectly on desktop, tablet, and mobile devices
### Admin Features
- Secure Authentication - Password-protected admin dashboard
- Revenue Dashboard - View total bookings and revenue statistics
- Booking Management - View, sort, and delete customer bookings
- Real-time Updates - Instant booking confirmation and management
- Session Management - Secure logout functionality
## Supported Routes & Fare Structure
### Route Base Fares (TZS)
| From | To | Base Fare (TZS) |
|------|-----|-----------------|
| Dar es Salaam | Dodoma | 35,000 |
| Dar es Salaam | Morogoro | 18,000 |
| Dodoma | Dar es Salaam | 35,000 |
| Dodoma | Morogoro | 25,000 |
| Morogoro | Dar es Salaam | 18,000 |
| Morogoro | Dodoma | 25,000 |
### Class …