This project is a comprehensive Library Management System built with Python and Flask. It provides a user-friendly interface for managing books, borrowers, and borrowing transactions efficiently.
- Add, update, and delete books
- Register and manage borrowers
- Record and track borrowing transactions
- Search for books and borrowers
To install the Library Management System, follow these steps:
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Install the required dependencies:
pip install -r requirements.txt
To set up the database, follow these steps:
-
Initialize the database:
flask db init
-
Apply the database migrations:
flask db upgrade
-
Create the database tables:
flask shell
from app import db db.create_all() exit()
-
Create an initial librarian user:
python create_librarian.py
To start the application, run the following command in your terminal:
python3 app.pyor
flask --app app run