The Library Management System is a Flask-based web application designed to manage books, users, and borrowing transactions. It allows users to search for books, borrow books, return books, and view popular books based on the number of borrowings.
- Book Management: Add, update, and delete books with details such as title, author, ISBN, and quantity.
- User Management: Add, update, and delete users with details such as full name and user ID.
- Borrowing Transactions: Track book borrowings with details such as due date, borrowed date, and user information.
- Popular Books: Display a list of popular books sorted by the number of borrowings.
- Search Functionality: Search for books by title, author, or ISBN.
- Python 3.x
- Flask
- Bootstrap (for frontend styling)
-
Clone the Repository:
git clone https://github.com/Sa3d-Ka/Flask-Library-Management.git cd Flask-Library-Management
-
Set Up a Virtual Environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Dependencies:
pip install -r requirements.txt
-
Run the Application:
flask run
-
Access the Application: Open your web browser and go to
http://127.0.0.1:5000
.
- Navigate to the "Add Book" page.
- Fill in the book details (title, author, ISBN, quantity).
- Submit the form to add the book to the library.
- Search for a book using the search functionality.
- Click the "Borrow" button next to the desired book.
- Select a user and specify the due date.
- Confirm the borrowing transaction.
- Navigate to the "Active Emprunts" page.
- Click the "Return Book" button next to the borrowing transaction.
- Confirm the return to update the book quantity and borrowing records.
- Navigate to the "Popular Books" page.
- View the list of books sorted by the number of borrowings.
- Flask
- Bootstrap (for frontend styling)
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeatureName
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeatureName
). - Open a pull request.
This project is open-source and available under the MIT License.