BusTrak is a comprehensive bus management system that helps users search for buses, book tickets, and manage their bookings. The system uses SQL for database management and HTML, CSS, and JavaScript for frontend development.
- User Authentication: Register and login functionality
- Bus Search: Search buses by source, destination, date, and bus type
- Seat Selection: Interactive seat selection with visual representation
- Booking Management: Book tickets, view booking history, and cancel bookings
- Ticket Generation: Generate and print electronic tickets
- Admin Dashboard: Manage buses, routes, and bookings for admin users
- Interactive Seat Layout: Visual seat selection system
- Real-time Fare Calculation: Dynamic fare calculation based on selected seats
- E-Ticket System: Downloadable and printable e-tickets
- Booking History: Track all past and upcoming journeys
- Frontend: HTML, CSS, JavaScript
- Database: SQL
- Data Storage: Local Storage for demo purposes
Bus Management System/
├── database/
│ └── busmanagement.sql # SQL database schema
├── frontend/
│ ├── css/
│ │ └── style.css # Main stylesheet
│ ├── js/
│ │ ├── script.js # Main JavaScript file
│ │ ├── login.js # Login functionality
│ │ ├── register.js # Registration functionality
│ │ ├── search.js # Bus search functionality
│ │ ├── booking.js # Booking functionality
│ │ └── bookingconfirmation.js # Ticket confirmation
│ ├── index.html # Home page
│ ├── login.html # Login page
│ ├── register.html # Registration page
│ ├── search.html # Bus search page
│ ├── booking.html # Seat booking page
│ └── bookingconfirmation.html # Booking confirmation page
└── README.md # Project documentation
- Create a MySQL database named
busmanagement - Import the
database/busmanagement.sqlfile to set up the schema and sample data
- Clone the repository to your local machine or web server
- No additional setup is required for the frontend as it uses plain HTML, CSS, and JavaScript
- Open
frontend/index.htmlin your web browser - For admin access, use username:
adminand password:admin123 - For customer access, register a new account
- Admin: Username:
admin, Password:admin123 - Customer: Register a new account
- Modify the
database/busmanagement.sqlfile to add more buses, routes, or features - Update the CSS in
frontend/css/style.cssto customize the appearance - Extend functionality by adding more JavaScript in the respective files
- Online payment integration
- SMS notifications for bookings
- Bus tracking system
- Feedback and rating system
- Multilingual support
Contributions are welcome! Please feel free to submit a Pull Request.