A Flask-based Library Management System API supporting CRUD operations for books and members, built with a focus on correctness, clean code, and functionality. Includes features like search, pagination, and token-based authentication.
- CRUD Operations: Manage books and members with Create, Read, Update, and Delete functionalities.
- Search Functionality: Search books by title or author.
- Pagination: Navigate through large datasets efficiently.
- Token-Based Authentication: Secure API endpoints with authentication tokens.
- Unit Testing: Comprehensive tests to ensure API reliability and correctness.
- Flask - A lightweight WSGI web application framework.
- Python - Programming language used.
- Unittest - Python's built-in testing framework.
- Clone and install:
git clone https://github.com/HemanthGangula/library-management-system-api
changing into project directory
cd library-management-system-api
creating virtual environment
python3 -m venv venv
activate the environment
source venv/bin/activate
Installing the requirements that are mention in the requirements.txt
pip install -r requirements.txt
- Run the application:
python3 app.py
- Visit the application:
http://127.0.0.1:5000/
The Library Management System is now running. You can perform operations like adding books, managing members, searching, and more through the API endpoints.
- Deactivate the virtual environment when done:
deactivate
source venv/bin/activate
python3 -m unittest discover tests
If you're ready to develop a frontend for the Library Management System, refer to the detailed API documentation.