Skip to content

Victor5771/bus-ticket-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bus-ticket-backend

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.

Features

  • Search for available buses based on origin and destination.
  • Book tickets for a selected bus.
  • Update or delete existing bookings.
  • View booking confirmations.

Installation

  1. Clone the repository to your local machine: git clone

  2. Navigate to the project directory:

    cd bus-ticket-backend

  3. Install the required dependencies:

  4. Create the SQLite database tables: python app.py

Usage

  1. Run the Flask application: python app.py

  2. Open a web browser and navigate to http://localhost:5000 to access the home page.

  3. Use the search form to search for available buses by specifying the origin and destination.

  4. Click on the "Reserve" link to book tickets for a selected bus.

  5. Fill in the necessary details and submit the form to confirm your booking.

  6. To update or delete an existing booking, navigate to the "Update" page and enter the booking ID.

  7. Follow the on-screen instructions to update or delete the booking.

Contributing

Contributions are welcome! If you'd like to contribute to the project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them to your branch.
  4. Push your changes to your fork.
  5. Create a pull request for your changes to be reviewed.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published