Skip to content

Nibir2405/Hotel_booking

Repository files navigation

Hotel Booking Project

Welcome to the Hotel Booking project! This repository contains a Python-based application designed to manage hotel bookings efficiently. It provides features to add, manage, and retrieve booking details, making it suitable for small to medium-sized hotels.


Features

  • Hotel Booking: Users can check the availability of hotels and book them.
  • Spa Package: Option to book a spa package along with the hotel.
  • Payment System: Validate and process payments using credit card details.
  • PDF Receipt: Automatically generates a PDF receipt for the booking.
  • Email Integration: Sends the PDF receipt to the user's email address.


Installation

  1. Clone the Repository:

    git clone https://github.com/Nibir2405/Hotel_booking.git
    cd Hotel_booking
  2. Create a Virtual Environment:

    python3 -m venv venv
    source venv/bin/activate  # For Windows: venv\Scripts\activate
  3. Install Dependencies:

    pip install -r requirements.txt
  4. Run the Application:

    python app.py

Usage

  1. Open your browser and navigate to http://localhost:5000 (or the port specified in the project).
  2. Use the interface to manage customer details, bookings, and rooms.

Project Structure

hotel-booking-cli/
│
├── [hotels.csv](http://_vscodecontentref_/0)             # Hotel data
├── [cards.csv](http://_vscodecontentref_/1)              # Credit card data
├── [card_security.csv](http://_vscodecontentref_/2)      # Credit card security data
├── [main.py](http://_vscodecontentref_/3)                # Main application script
└── README.md                                             # Project documentation
└── requirements.txt                                      # Project's requirements         

Contributing

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

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit your changes (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. Create a pull request.

License

This project is licensed under the MIT License.


Technologies Used

  1. Python: Core programming language.
  2. Pandas: For reading and manipulating CSV files.
  3. FPDF: For generating PDF receipts.
  4. smtplib: For sending emails with attachments.

Future Enhancements

  1. Add a user-friendly GUI for better interaction.
  2. Implement a database to replace CSV files for better scalability.
  3. Add more payment options (e.g., PayPal, Stripe).
  4. Enhance error handling and logging.

Connect with me:

navid-ul-islam navid ul islam navid ul islam


Acknowledgements

Special thanks to all contributors and users who make this project better!


Feel free to customize it further based on your project's specific details, such as additional features or technologies used. Let me know if you need help with any section!

About

This project is a Hotel Booking Command Line Interface (CLI) application built with Python.

Topics

Resources

License

Stars

Watchers

Forks

Languages