This is a FastAPI backend application for managing student data, using MongoDB as the database. The project demonstrates CRUD operations, proper data validation with Pydantic, and asynchronous database handling with Motor.
- Add Student – Add a new student to the database.
- Retrieve Students – Get all students or a specific student by ID.
- Update Student – Update student data (any field).
- Delete Student – Delete a student by ID.
- Asynchronous Operations – Powered by Motor for async MongoDB queries.
- Data Validation – Using Pydantic models (
StudentSchemaandStudentModel).
- Backend Framework: FastAPI
- Database: MongoDB Atlas / Compass
- MongoDB Driver: Motor
- Python Version: 3.10+
- Environment Management:
venvand.envfor secrets