This project implements a backend system for a Library Management System using FastAPI and MongoDB. It provides a set of APIs for creating, listing, updating, and deleting student records in the system.
- Create new student records
- List students with optional filtering by country and age
- Retrieve individual student records by ID
- Update existing student records
- Delete student records
- Language: Python
- Framework: FastAPI
- Database: MongoDB
To run this project locally, you need to have the following installed:
- Python 3.x
- MongoDB
- Pip (Python package manager)
- Clone the repository:
git clone https://github.com/your-username/library-management-system.git- Navigate to the project directory:
cd library-management-system- Install dependencies:
pip install -r requirements.txt- Set up MongoDB:
- Install MongoDB locally or use a cloud-based MongoDB service like MongoDB Atlas.
- Update the MongoDB connection string in
app/db/connection.py.
- Start the FastAPI server:
uvicorn app.main:app --reload-
Open your web browser and navigate to http://localhost:8000/docs to access the Swagger UI.
- Alternatively, you can use tools like Postman to interact with the APIs directly.
-
Use the provided APIs to perform CRUD operations on student records.
You can check out the application at LINK
Contributions are welcome! Please feel free to submit issues or pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.
