Cloud-Based Comprehensive Bus Ticketing And Reservation System
DOI:
https://doi.org/10.63665/2nzamg49Keywords:
Cloud Computing, Bus Ticketing, Flask, SQLite, Bootstrap 5, Docker, MVC Architecture, Seat Management, Atomic Transactions, RBAC, Reservation System, REST API, Session AuthenticationAbstract
Public road transport is the backbone of urban and inter-city mobility in developing nations, yet the overwhelming
majority of bus operators still depend on manual counter-based ticketing — a model plagued by long queues, limited
operating hours, overbooking errors, and the absence of real-time seat information. This paper presents BusBook, a
Cloud-Based Comprehensive Bus Ticketing and Reservation System — a full-stack web application architected on the
Model-View-Controller (MVC) pattern using Python Flask 3.x, SQLite 3, and Bootstrap 5. The system implements
role-based access control for passengers and administrators, atomic seat management via SQLite transactions to
eliminate race-condition overbooking, a dynamic source-destination bus-search engine, a complete booking lifecycle
(search → book → confirm → cancel → refund), and a real-time admin analytics dashboard. The application is
containerized with Docker for one-command deployment on AWS, Azure, or Google Cloud Run. Mathematical
formulations of fare computation, seat availability constraints, atomicity invariants, and revenue aggregation are
derived. System architecture, MVC layering, booking flowchart, and four pseudocode algorithms are presented.
Results analysis includes bar charts of comparative system evaluation, page-load benchmarks, monthly booking and
revenue trends, seat utilization, and a comprehensive feature-comparison table against existing solutions. All 15
functional and security test cases passed, confirming system correctness.
Downloads
References
[1] S. Kumar and R. Sharma, 'Online Bus Reservation
System Using PHP and MySQL,' Int. J. Computer
Applications, vol. 178, no. 45, pp. 12–18, 2019.
[2] M. Patel, A. Desai, and R. Shah, 'Cloud-Based
Public Transport Management System,' IEEE Intl.
Conf. Cloud Computing, pp. 245–252, 2020.
[3] A. Singh and P. Gupta, 'Real-time Seat Availability
Tracking in Bus Reservation Systems,' J.
Transportation Engineering, vol. 12, no. 3, pp. 89–96,
2020.
[4] M. Grinberg, Flask Web Development:
Developing Web Applications with Python, 2nd ed.
O'Reilly Media, 2018.
[5] L. Chen and W. Zhang, 'Responsive Web Design
for Transportation Applications,' ACM CHI, pp. 1–12,
2021.
[6] K. Williams, Docker for Developers: Application
Containerization Guide. Apress, 2021.
[7] D. Roy and S. Banerjee, 'Role-Based Access
Control in Web Applications,' Int. J. Information
Security, vol. 18, no. 5, pp. 567–580, 2019.
[8] T. Anderson, 'SQLite as an Application Database
for Small to Medium Scale Systems,' Database
Systems J., vol. 11, no. 2, pp. 45–58, 2020.
[9] N. Reddy, K. Prasad, and V. Kumar, 'Smart Bus
Ticketing System Using IoT and Cloud Computing,'
IEEE IoT J., vol. 9, no. 15, pp. 13245–13256, 2022.
[10] Bootstrap Team, 'Bootstrap 5 Documentation —
Dark Mode and Theming,'
https://getbootstrap.com/docs/5.3/, 2023.
[11] Pallets Projects, 'Flask Documentation,'
https://flask.palletsprojects.com/, 2023.
[12] SQLite Consortium, 'SQLite WAL Mode
Documentation,' https://www.sqlite.org/wal.html,
2023.
[13] Docker Inc., 'Containerize a Python Application,'
https://docs.docker.com/language/python/, 2023.
[14] R. Fielding, 'Architectural Styles and the Design
of Network-based Software Architectures,' Ph.D.
dissertation, UC Irvine, 2000.
[15] OWASP Foundation, 'OWASP Top 10 Web
Application Security Risks,' https://owasp.org/wwwproject-
top-ten/, 2021.
[16] Indian Ministry of Road Transport, 'National
Transport Policy,' Government of India, 2018.
[17] United Nations, 'Sustainable Development
Goals,' https://sdgs.un.org/, 2023.
[18] Amazon Web Services, 'AWS Free Tier —
Deploy Docker Containers on ECS,'
https://aws.amazon.com/free/, 2023.
[19] A. Ronacher, 'Jinja2 Template Engine
Documentation,' https://jinja.palletsprojects.com/,
2023.
[20] E. Gamma, R. Helm, R. Johnson, and J. Vlissides,
Design Patterns: Elements of Reusable Object-
Oriented Software. Addison-Wesley, 1994.
