This is a Flask-based web application for booking bus tickets. Users can search for available buses, book tickets, update bookings, and view booking confirmations. The application uses SQLite database to store bus, user, and booking information.
- Search for available buses based on origin and destination.
- Book tickets for a selected bus.
- Update or delete existing bookings.
- View booking confirmations.
-
Clone the repository to your local machine: git clone
-
Navigate to the project directory:
cd bus-ticket-backend
-
Install the required dependencies:
-
Create the SQLite database tables: python app.py
-
Run the Flask application: python app.py
-
Open a web browser and navigate to
http://localhost:5000
to access the home page. -
Use the search form to search for available buses by specifying the origin and destination.
-
Click on the "Reserve" link to book tickets for a selected bus.
-
Fill in the necessary details and submit the form to confirm your booking.
-
To update or delete an existing booking, navigate to the "Update" page and enter the booking ID.
-
Follow the on-screen instructions to update or delete the booking.
Contributions are welcome! If you'd like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them to your branch.
- Push your changes to your fork.
- Create a pull request for your changes to be reviewed.
This project is licensed under the MIT License - see the LICENSE file for details.