This project is a library management system that allows users to register, login, and manage books. Users can issue and return books, and the system keeps track of overdue issues. The project includes APIs for user management, book management, and issuance management.
- Clone the repository:
git clone https://github.com/Piyush-sri11/Library-management.git
2.2. Set up a virtual environment:
virtualenv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install dependencies:
pip install -r requirements.txt
-
Set up config variables in
bash config.py
file: SQLALCHEMY_DATABASE_URI = 'sqlite:///library.db' SQLALCHEMY_TRACK_MODIFICATIONS = False JWT_SECRET_KEY = 'super-secret' # Change this in your code -
Run the application:
python app.py
- Access the application:
Open your browser and go to
http://localhost:5000
- Reset the db
flask reset-db
The API documentation can be accessed in the file
- `Api_doc.md`
- `library-management.postman_collection.json`
Run to perform test on the server
https://go.postman.co/workspace/6e8936c1-b64b-4bfc-8794-698c89f45148/collection/38345023-b1e52c95-3ab0-427d-a850-ddeda9120834