The Bus Booking System is a web-based application that allows users to browse bus routes, book tickets, and manage reservations. Admins can manage buses, routes, and bookings through a separate dashboard.
BOOKING-SYSTEM/
├── db.sql
├── api.php
└── public/
├── index.html
├── home.html
├── booking.html
├── mybookings.html
├── ticket.html
├── admin.html
├── styles.css
└── script.js
Try it here Live Demo
- Browse available buses.
- Book tickets online.
- View the ticket.
- View booking history.
- Cancel booked tickets.
- Admin has seperate access to
admin.html. - Manage buses, routes, and bookings via the admin dashboard.
- Frontend: HTML, CSS, JavaScript
- Backend: PHP
- Database: MySQL
- Hosting: InfinityFree (
.rf.gddomain)
-
Install XAMPP and run it.
-
Start Apache and MySQL from the XAMPP control panel.
-
Place your project folder inside the
htdocsdirectory:C:\xampp\htdocs\bus-booking -
Open your browser and navigate to:
http://localhost/bus-booking/public/index.html -
Open phpMyAdmin:
http://localhost/phpmyadmin -
Create a new database (e.g.,
bus_booking). -
Import the
db.sqlfile into the database. -
Update your database credentials in
api.phpif necessary.
Now, user actions like bookings and admin actions like adding buses will be reflected in your local database.
- Open
index.htmlin your browser.. - Register and login with your credentials and you will be redirected to
home.html(user view). - Users can browse buses, select seats, complete bookings, view tickets and cancel tickets if needed.
- Admin can have seperate access to (admin dashboard)
admin.html(admin view).
- Upload your project folder to a PHP + MySQL hosting platform (like InfinityFree).
- Update database credentials as required.
- Ensure
index.html,home.html, andadmin.htmlare accessible through URLs.
Jyotsna Nadisetti
- GitHub: https://github.com/NJyotsna
