This is a book store desktop application developed as a task for the Cairo University Racing Team in the Automation Department. It is implemented using Python and PyQt5. The application allows users to search for books, apply filters, view book details, and make purchases.
- Search Bar: Enter keywords to search for books by title, author, or section.
- Filter Button: Apply filters to refine search results.
- Search Button: Trigger the search based on the entered keywords and filters.
- Book List View: Display the search results with book titles, authors, sections, and prices.
- Buy Button: Purchase a selected book.
- Checkout Window: Enter name and address for purchasing books.
- Python 3.x installed on your system and added to the PATH
-
Clone the repository:
git clone https://github.com/your-username/book-store.git
-
Create a virtual environment and enter it:
virtualenv venv
venv\Scripts\activate
-
Install the required libraries:
You will find them in requirements.txt
-
Run the application:
python book_store.py
- Upon running the application, the main window of the book store app will appear.
- Enter keywords in the search bar to search for books. You can also apply filters using the filter button.
- Click the search button to perform the search.
- The list view will display the search results with book titles, authors, sections, and prices.
- Click on a book to view additional details.
- Double click to hide additional details.
- To purchase a book, click the "Buy" button under the book. A checkout window will appear.
- Enter your name and address in the checkout window and click the "Confirm" button to complete the purchase.
- You will find your invoice in directory "/invoices"