A simple Library Management System built with Python Flask and MongoDB that supports basic CRUD operations on books, authors, users, and borrow records. This project is designed for learning RESTful APIs and NoSQL integration using MongoDB Compass.
- π Add, update, delete, and retrieve book data
- π€ Manage library users (add, update, delete, view)
- βοΈ Store author information
- π Track borrow and return records
- π REST API tested using Postman
- βοΈ MongoDB used as the backend database (with Compass)
Technology | Use |
---|---|
π Python | Backend language |
β‘ Flask | Web framework |
π MongoDB | NoSQL database |
π§ MongoDB Compass | GUI for MongoDB |
π₯ Postman | API testing |
π your-project/ βββ app.py # Main Flask server βββ README.md # This file
Method | Endpoint | Description |
---|---|---|
GET | /books |
Get all books |
POST | /books |
Add a new book |
GET | /users/<id> |
Get a user by ID |
PUT | /borrowRecords/<id> |
Update borrow record |
POST | /authors |
Add a new author |
π§ͺ Test all APIs using Postman
- π JWT-based authentication
- πΌοΈ Frontend with React or Vue
- π Admin dashboard UI
- β Book availability check logic
PRs are welcome!
For major changes, please open an issue first to discuss what you would like to change.