Bus Booking Python Django Oxw3ia
Bus Booking Python Django Oxw3ia
SYSTEM
IN
PYTHON DJANGO
Declaration
I declare that this project documentation is my own work and has not been submitted to Meru
University of science and technology or any other institution for higher learning for academic
Student signature:
Sign: date:
Sign: date:
Abstract
The Online Bus Ticket Reservation System is a web-based application that allows visitors
check bus ticket availability, buy bus ticket and pay the bus ticket online. This system is
established for all the home/office users after gaining access from the administrator. Chapter
I is Introduction. It describes the project background, problem statement, objectives, scopes,
project significance and expected output of the proposed system. Chapter II is Literature
Review and Project Methodology. It describes facts and finding for electronic ticketing,
describe methodology that are used to develop the system, state out project requirements,
explain action plan prior to the end of the project and attach Gantt chart. Chapter III is
Analysis. It is concerned with first studying the existing system, then using the information
gathered to define the requirements for a new system. Besides that, analysis follows the
problem recognition and feasibility phases and must be completed before the design phase
can begin. Chapter IV is Design. It defines the results of the analysis of the preliminary
design and the system architecture, DFD, Data Dictionary, Data Normalization, Entity
Relationship Diagram are established. Besides that, it describes a plan to implement the
requirements. Furthermore, details on computer programming languages and environments,
machines, packages, application architecture, distributed architecture layering; memory size,
platform, interfaces, and many other engineering details are established in Chapter V.
Chapter IV is Implementation. It describes software development environment set-up,
software configuration management and implementation status for Bus Ticket Reservation
System. Chapter VI is Testing. It concerns test plan, test strategy, test design, test results and
analysis used to test Bus Ticket Reservation System. Conclusion is chapter used to conclude
and summary all the
Chapters
Contents
Declaration.......................................................................................................................................2
Abstract............................................................................................................................................3
CHAPTER 1: INTRODUCTION....................................................................................................6
1.4 OBJECTIVES........................................................................................................................7
2.1 INTRODUCTION...............................................................................................................10
CHAPTER 3: METHODOLOGY.................................................................................................13
3.1 INTRODUCTION...............................................................................................................13
3.7 SUMMARY.........................................................................................................................17
4.1 INTRODUCTION...............................................................................................................18
5.1 INTRODUCTION...............................................................................................................22
5.5 SCREENSHOTS..................................................................................................................30
6.1 INTRODUCTION...............................................................................................................33
CHAPTER:7 REFERENCES........................................................................................................37
CHAPTER 1: INTRODUCTION
This chapter aims to describe the project background, problem statement, objectives, scopes,
project significance and expected output of the system. The system is Bus Ticket Booking
System. This is the project on the online ticketing system of modern coast bus company, which
in most cases; the company has problems with their ticketing and scheduling process. This
project intends to computerize its semi computerized ticketing system to provide better customer
service. Because of that, the company can provide the easier way of travelling to the customer or
passenger. Electronic tickets, or e-tickets, give evidence that their holders have permission to
enter a place of entertainment, use a means of transportation, or have access to some Internet
services. Bus Ticket Reservation System enables the bus company's customer to buy bus ticket
online-ticket is the easiest and quickest way to take bus. The online system is a new system
because it’s just getting roots in bus company globally and even in Kenya. Currently, staff at the
bus ticket counter is using an internal system to sell ticket at the counter. Customer is unable to
buy bus ticket online at this moment and has to go to the counter to buy bus ticket. Sometimes,
customer needs to queue up a long queue to buy bus ticket and ask for information. Besides that,
customer also not allows buying bus ticket through telephone and Transnational’s telephone line
is always busy. This brings a lot of inconvenience to the customers.
Online Bus Ticket Reservation System enables the customer to buy bus ticket, make payment,
cancel reservation and ask for information online easily. Furthermore, staff can sell bus ticket
using Bus Ticket Reservation System after check bus ticket availability for the customer and
print the bus ticket to the customer that queue up in the counter.
1.2 PROBLEM STATEMENT
The System that is being used by the staff at the counter currently is an internal system and
just used to sell the bus ticket at the counter. Customer has to go to the counter to buy bus
ticket or ask for bus schedule. Furthermore, customers need to pay cash when they buy the
bus ticket and sometimes needs to queue up long time to get the bus ticket. Besides that,
customer also not allowed to buy bus ticket through telephone and the bus company's
telephone has been always-busy line.
Customer can buy the bus ticket over the Internet, 24 hours a day, 7 days a week and the bus
ticket can't be lost, stolen or left behind.
In addition, the online system lets the customers check the availability of the bus ticket
1.4 OBJECTIVES
The main objectives of the online system include:
To provide a web-based bus ticket buying functions. Customer can buy bus ticket through the
online system and no need to queue up to buy bus ticket at the counter.
To enable customer to check the availability of the bus ticket online. Customer can check the
time departure and arrival for every Transnational’s bus through the system.
To ease the bus ticket payment by online. Customer has to pay the bus ticket by m-pesa
money services
To reduce the number of staff at the point of sale. The number of staff at the counter can be
programming Language. All student of computer science can learn programming language
student to learn about coding and provide training in last 5 Year we have 100000+ Students
Status Active
Industry IT
2.1 INTRODUCTION
Tourism has demonstrated as one of the most successful sector in optimizing the mobile
application. According to Buell, Campbell, & Frei, (2010) about 50% of existing tourism
recommender systems is designed for mobile devices. The Mobile application grouping
accessible in the tourism industry as mentioned, there are four main mobile travel application
categories “Online Booking”, Information Resource”, “Location Based Services”, and “Trip
Journals”. The “Online Bookings” category (Smirnov, Kashevnik, Shilov, Teslya, &
Shabaev, 2014). These applications allow a tourist to make online reservations for different
services (e.g., Bus travel, car rental, hotel, airplane ticket booking). Usually the tourists
demand applications from this category before the trip. According to (Gunduz & Pathan,
2013), online purchases of flight tickets represented 32 percent of overall online purchase
business, Hotel and Tours represent 26 percent and event management tickets sold represent
20 percent of global online purchases. Approximately 79 percent of United State mobile
phone uses the device for online shopping convinces and needs. Consumers depend on their
applications for more commercial dealings, social corresponding and community interaction.
Results derived from these surveys show that airline, bus liners and travel agents, being the
goods and service provider, should expand the ticketing services through mobile shopping. In
addition, when the customer delivers the service independently through the use of technology
will simplify and increase efficiency of service delivery, this technology called self-service
technology (SST). Self-service technology replacing the traditional service encounter which
in the process, there is a communication between customer and employee become the
customer deliver the service by themselves (Wang, Harris, & Patterson, 2012). Moreover, the
customer unnecessary to visit a firm office to ask about banking transaction, tickets
information and bill payment, through this service firms give simplicity for the customer to
fulfill their needs, and customer can reduce money, time, and effort to fulfill their needs.
Second purpose of providing self-service technologies is transacted, this technology enables
the customer to make a transaction buy, pay, or order stuff from the internet without direct
interaction with an employee. The third purpose of self-service technologies is to self-help.
Through these SSTs, enable the customer
to learn, receive information, train them, and provide their own service. Furthermore, Self-
service technologies indeed have a benefit for both companies and consumer. SSTs are cost
effective to escalation the benefit of accessibility, pervasive obtainability, and time and
money savings and reduce anxiety. Nowadays electronic ticketing systems (e-ticket system)
are particularly famous for the traveler in the whole of the world. Electronic ticketing system
is shift traditional ticketing system because a lot of advantages which customer can get from
e- ticketing system for example avoid queuing in ticket box. Electronic ticketing system
begins in accordance with the development of the internet, before electronic ticketing system
begins there is several ticketing systems which use paper based or smart card based. All
kinds of ticketing system have the advantage and disadvantage, and already classify the
advantage and disadvantage of several kinds of ticketing system in the Table 1.
(Jakubauskas, 2010):
2.2 EXISTING SYSTEMS
Provisioning: Allow mobile phone application to interact with customers, allowing the
Ticket check: Controller to verify and accept the sales and display of the mobile ticket as a
valid ticket for the passenger, according to the terms displayed on the ticket.
CHAPTER 3: METHODOLOGY
3.1 INTRODUCTION
It is important to fulfill the planning of the implementation phase. This can only be done if
proper methodology is selected. Methodology is important to make sure all project life cycle
activities are being carried out without any shortcuts. Methodology helps the system
developers to take one step at a time towards accomplishing the full system. The following
section discusses on the choice of methodology towards the implementation of Online Bus
Ticketing System for Modern Coast Bus Company.
3.1.1 SYSTEM DEVELOPMENT METHODOLOGY
This system underwent all the stages of system development lifecycle (SDLC). According to
the nature of this system and the data collected, a waterfall methodology was used to develop
this system. This methodology included the following stages: feasibility study, requirement
analysis and specification design, coding, testing, integration then maintenance.Each phase
required a different amount of effort and every phase had a well-defined starting and point.
Every phase had to be completed before beginning the next stage
Feasibility Design
study
Requireme Coding
nt analysis
and Integration
Testing
specificati
Maintenance
3.1.2 JUSTIFICATION FOR THE METHODOLOGY
The waterfall methodology was worthwhile because this approach produced a complete
quality system and error-free system due to the fact that every phase had to be completed
before the next one began thus leaving no phase unattended.
However, according to the data collected on the user requirements, there was a clear
understanding of the user requirement hence no doubt on what was to be developed.
Similarly, the approach was also less costly since there was no repeating of a process once
completed and thus minimized wastage of resources as compared to other approaches such as
the rapid prototyping methods.
So as to collect data from Modern coast bus ticket booking system as well as its clients,
appropriate methods of collecting data were needed. These techniques included the
following:
3.1.3.1 Observation
This involved the researcher going to the field of study, making direct watch on the way the
organization under study operates, identifying the possible drawbacks of the operating
system analyzing the problems and developing a solution based on the observations made.
This technique was employed since it provides a first-hand information which is quite
reliable and accurate since the method provided a quick overview of the system. It is the
most effective technique.
3.1.3.2 Interviews
This is a direct face to face conversation between the system analyst(interviewer) and the
users of the system. This was used where the respondents were few in order clarifying and
verifying gathered facts. This technique was important to use since some data could not be
collected by direct observation unless interviewed, hence it helped in enriching the data for
quality processing.
3.1.3.3 Questionnaires
A questionnaire refers to a set of questions prepared by the person collecting data in a paper
which is issued to specific people who in turn respond to the questions privately without the
presence of the interviewer. Once the respondent is through, he/she will issue the answers
back to the person collecting the data. This technique was also important because some
interviewees were not confident enough to respond to the question at the interview panel
during the interview, and therefore a questionnaire best suited such people.
This is a measure of how well a proposed system solves the problems, and takes advantage of
the opportunities identified during scope definition and how it satisfies the requirements
identified in the requirements analysis phase of system development. It dealt with the effect
of the system on the current society within the company.
The operational feasibility assessment focused on the degree to which the proposed
development projects fitted in with the existing business environment and objectives with
regard to development schedule, delivery date, corporate culture, and existing business
processes.
To ensure success, desired operational outcomes were imparted during design and
development. These included such design-dependent parameters such as reliability,
maintainability, supportability, usability, predictability, disposability, sustainability,
affordability and others. These parameters were considered at the early stages of design
where desired operational behaviors ere to be realized. A system design and development
required appropriate and timely application of engineering and management efforts to meet
the previously mentioned parameters. A system may serve its intended purpose most
effectively when its technical and operating characteristics are engineered into the design.
Therefore, operational feasibility is a critical aspect of systems engineering that needed to be
an integral part of the early design phase. The Modern coast bus ticket booking system
solutions was found reliable and adaptable therefore making it operationally feasible.
3.5.2 Legal feasibility
This study was conducted to determine whether the proposed system conflicted with legal
requirements. These were data processing system must comply with the Local Data
Protection Acts. Any legal aspects associated with the new system were assessed and then
adequate measures taken to protect the interest of clients at Modern coast bus ticket booking
system. The Modern coast bus ticket booking system Solutions went through this stage
successfully and the system was found feasible.
3.5.3 Economic feasibility
The purpose of the economic feasibility assessment was to determine the positive economic
benefits to the organization that the proposed system had to provide. It included
quantification and identification of all the benefits expected. This assessment typically
involved a Cost- Benefits Analysis (CBA). Undoubtedly the Modern coastonline bus
company booking system was found economically feasible and no possibility of it outliving
its usefulness in the near future.
3.5.4 Technical feasibility
PYTHON and HTML were used for coding purposes as they served best during web based
applications. JAVA SCRIPT was also employed for scripting purposes while CSS was used
to format the web pages and creating appealing and user friendly interfaces of the system.
NOTEPAD++ editor was used to edit the code.
For database creation and connection purposes DJANGO was used which also has PYTHON
used PHPMYADMIN for database management and hosting.
Data flow diagrams, sequence diagrams and use case diagrams were some of the system
modeling tools that would be used to draw in the development process.
3.7 SUMMARY
From the discussed methodology, it is evident that every system must undergo through a
series of steps in a system development lifecycle. The methodology stated above was used
throughout the system development and this helped in coming up with a booking system that
would address the needs of Modern coast organization and also its clients.
CHAPTER 4: SYSTEM ANALYSIS AND REQUIREMENT
MODELLING.
4.1 INTRODUCTION
In this chapter, the current system used in Modern coast bus ticket booking system is to be
examined and the relevant analysis done on it. The core aim of this is to determine whether
there is need for a new system or not. The chapter also explains how the current system
works by providing system requirements through various models that enables one to
comprehend the system better. Modelling tools such as DFDs, flowcharts, use case diagrams
and others are used in the chapter.
Currently, Modern coast bus ticket booking system does not have a particular developed
system for enhancing the online booking of bus company. This implies that there is lack of
any kind of interaction between the bus company and the customers. In most of time, anyone
wishing to do ticket bookinghas to choose from any of the following three options in order to
secure a space for service:
i. Visiting the premises of the bus company to make the necessary inquiries upon which
booking is done.
ii. Contacting the manager in the bus company through a communication channel in order to
inquire about the bus company and how booking can be done.
iii. Performing consultation from anyone who has ever produced with Modern coast bus ticket
booking system or has the knowledge or any relevant information about the bus company.
The main challenge associated with the current system is that potential customers have travel
all the way to where the Modern coast bus ticket booking system is located. As a result, there
is consumption of time which would be avoided by having an automated system. Booking
through a call can limit the provision of enough information which might cause
inconveniences of service delivery. All these are both tedious and time consuming activities.
There is also problem of customers being unable to assess the progress of their projects not
unless they directly contact the manager which in turn consumes time in both parties.
In some cases, the interested customers may not know exactly where the bus company is
located, other than visiting it. This problem is clearly solved by the new system which
provides all relevant information about the bus company such as its geographical location,
contacts and others.
These requirements are those that enable the system to operate. These requirements focus
mainly on what the system should do. They include:
Users have to register themselves by creating accounts to gain access to the system’s services.
User authentication by use of password.
The system has two database views; the super administrator has more privileges than the
other users. The system shall validate users accessing data in the system through use of
password and username validation and verification. A login dialog box will be used for these
purposes.
The categories of users allowed to access data in the system are:
i) Administrator,
ii) Customers (clients)
The super Admin will be responsible for making changes to the database while the members
will only be allowed to view the contents of the database.
4.3.2 Non-functional requirements
These requirements focus on how the system works or how the system should behave by
providing its quality attributes. These requirements include:
The system should be able to handle an unlimited number of users at a time.
Documentation: the system will be documented and PDF manuals will be available for users
when the system goes live.
Recover-ability: the system will be regularly backed up so that it can be recovered in case
data is lost for some reason.
Design constraints: The software will be developed with Django database back end.
The system will not work in the absence of internet
The system will only require the registered users to log in to the system.
The system will only allow the super admin to change data on the database and not any other
user.
4.4 SYSTEM MODELLING
In this section, diagramming tools are used to help users understand the flow of data for the
existing system of operation at Modern coast bus ticket booking system. Since the system is a
manual one, below (see Fig 3) is a Data Flow Diagram on how data flows.
Issue form
Customer
Customer
consultatio
Customer arrival Attendant’s fills the
Customer details
Manager
verifies
Form file
Verified details
CHAPTER 5: SYSTEM DESIGN
5.1 INTRODUCTION
The aim of this chapter is to examine the system which was proposed for Modern coast bus
ticket booking system by describing it in details. It also focuses on the process design of the
system which in turn explains how the system operates with the aid of various modeling
tools.
Moreover, the chapter further covers the system’s database design by focusing on both
physical, conceptual and logical models. Finally, the chapter will focus on the interface
design of the newly proposed system to examine its usability by the users.
The system home page is a page where any user lands after typing the address of the site on a
web browser. The home page contains general information such as the heading, welcome
messages, core values of the bus company, the mission of the bus company and a few images
of the bus company. Moreover, there are links to other pages such as log in, register, admin
login, services offered, about us and contacts.
This is a page that gives a detailed information about Modern coast bus ticket booking
system, what it specializes in and the terms and conditions of producing with them. The page
in addition provides the log in and register links to the user for quick navigation purposes.
The contacts page provides all the relevant contact information regarding the location of the
bus company, the telephone numbers and the postal addresses of its location. Again, this
page provides the register and log in link to direct the user to the appropriate page.
First name
The user is required to enter the first name of his/her choice
Last name
The user enters another name different from the first name as the last name
Password
This is a secret set of values which can be a mixture of integers, alphabets and other special
characters that the user must provide for authentication purposes.
Register
This is a submit type of input that allows the users to submit their registration details to the
server database.
The page again contains the link to log in for quick navigation
This page is an authentication page for those users who claim to have an account with
Modern coast bus ticket booking system. It offers a form with only two input fields which
include the following:
Username
The user is required to enter the username he/she entered during the account creation form
exactly the way it was in that form. Any variation will result to an error.
Password
The user is expected to enter the password that was typed and confirmed during
registration/account creation. If the user uses a different password, he/she is told that the
password is incorrect.
Login
This is a submit button where the user must click to submit the log in details to the database
server. Any variation with the database will result to a log in error.
Location
Type of booking
Dates of booking
Time-From-To
Name of bus company
Book
When the admin logs in, he/she has the privileges to access the customers’ booking and
registration details. The administrator activates all valid bus company bookings and will in
turn post the progress of booking to users’ progress view page. In addition, the admin deletes
invalid details.
The various processes that take place include: User registration, user log in, user booking,
user post payments, user check progress and payments, user log out, admin log in, admin
update progress and payments, admin print available bookings, admin post and change bus
company prices, admin database manipulation and admin log out.
The various processes for proposed system in Modern coastsystem have been summarized in
a Data Flow Diagram (see figure 5&6). The figure below is therefore a data flow diagram
describing the design of these processes:
Customer
Registration details
User check
progress and
User
booking
Customer
Admin
Login details database
Admi
n
update
Post &
change bus
The various activities that will be taking place for new system have been summarized using a
use case diagram (see figure7). Below therefore shows the use case activity diagram for the
new system.
5.4 DATABASE DESIGN
The database called customer is designed using the structured query language Django and
has following tables:
customers
ticket
bus
destination
route
timetable
Home
Sin-up page
Find Bus
Booking Confirmation
Print Bill
CHAPTER 6: SYSTEM IMPLEMENTATION
6.1 INTRODUCTION
In this chapter, the newly developed system is addressed before it is deployed into the
operations of the business. As a result, I am therefore going to examine the tools used for
coding the system as well as testing, the system test plan, actual testing and finally propose a
suitable change over method that the business should employ in order to bring the system
into operation.
Editing: During the coding process, I used the notepad++ software as the tool for editing the
code using the various languages as discussed below.
Programming languages: During the coding process, I used the following web scripting
languages:
Unit testing: This requires that testing be done on individual units constituting the entire
system. This testing approach was to help identify errors since each unit was examined
independently.
Stress testing: This is a testing method that always tests the behavior of a system when
subjected to unusual conditions. I tested the system with invalid input data such as unfilled
input fields and no execution could continue.
This is done to the entire system to test the general working of the system after it has been
fully developed. This test will be done on this system to test whether the objectives stated
earlier have been achieved or not.
Functional testing:
This involves testing the functions of the program by providing an input data and observing
the output. This will be done to test the working of the various functions of the programme
and any unexpected behavior will be identified and corrected accordingly.
The system was also subjected to potential users for feedback and acceptance tests and I got a
positive response from these users whereby they accepted the system as a solution to
inefficient manual operations in Modern coast bus booking system productions. Acceptance
testing was
done after the completion of development process where the system was delivered to the
users for their views and once they accepted the system, then the system is said to have met
the user requirement. User acceptance for this system was be done at later stages of
development to give potential users/clients an opportunity to give views about it.
CHAPTER 7: CONCLUSIONS AND RECOMMENDATIONS
It is clear that the existing systems of booking are limited to fixed bus company services and
do not provide mobile bus company service feature. This is therefore a bit expensive to the
clients as compared to when the bus company itself visits the clients who sometimes might
be a singing group of 20 members or a band. Therefore, proposed system provides a module
to select the nature of the bus company, i.e. either mobile or fixed and this helps the clients
make order for the bus company itself to visit them. This will reduce unnecessary costs and
time consumption.
The problems associated with the current system will be addressed with the new proposed
system. The whole design of the proposed system is a clear automation of the current system
at Modern coast bus ticket booking system and therefore the problems associated with the
manual system are well addressed by this design.
Also, the new system has been developed with a graphical user interface that is simple for
use and is therefore going to simplify the entire booking process. Despite a few challenges in
the implementation process, the process was a successful one as I was able to come up with a
system that did not only work but also got acceptance form users.
Taking this project all through has been a wonderful experience for me and for the practical
knowledge that I acquired, this would not have materialized. This is a very important part of
my course and has helped me understand the concepts behind a number of web scripting
languages as well as familiarize with the market expectations of the course at large.
CHAPTER:8 REFERENCES
1. AGAK H.O. (1998), Gender in School Music (2nd Edition).
2. BURGESS, R.J. (2014) History of Music booking, Oxford University press (1st Edition).
3. DUCKETT, J. (2010). Beginning HTML, XHTML, CSS, and JavaScript, Wiley Publishing
Inc., (4th Edition).
4. EPROGRAMY, (2002). HTML & CSS Crash Course. (Kindle Edition).
5. FRANZ, D., LINDSAY, S.G. (2004). Home bus company, Barklee press, (1st Edition).
6. GEORGE PETERSEN, “In Memoriam: Keith Barr 1949-2010”,Mix Magazine Online,
August 2010, http://mixonline.com/news/keith_barr_obit_2508/index1.html
7. MANNING, A. (1991). Centre for Economic Performance. (1st Edition).
8. PIGBOAT, (2007). Pigboat’s Bus company Management System. www.sourceforge.net
9. PROBOOKER, (2010).Probooker Reservation System,(1st Edition)
10. RICHARD C. (2002) Music Education. (3rd Edition).
11. RUTH M.S. (2010) Music of Kenya, (3rd Edition)
12. SAWYER, R.H., GOLDING, C. (2012). What is ticket booking? CRC press, (2nd Edition).
13. SIMONS, DAVID (2004), Bus company Stores-How the Great New York Records were
Made. San Francisco: Backbeat Books.
14. SPOLSKY, J.A. (2006). User Interface Design for Programmers (Kindle Edition).
15. BUS COMPANY HELPER, (2008) Bus company Helper System. United States www.bus
companyhelper.com )
16. BUS COMPANY SUITE, (2010) Bus company Suite Management System www.bus
companysuite.com
17. BUS COMPANYDIX, (2008).Bus companyDix management system www.bus
companydix.net )
18. WATSON, A. (2014). Cultural Booking in and beyond the recording bus company,
Routledge publishers, (1st edition)
19. https://projectworlds.in/