Library API Project

Overview

A fully functional Library Management System built with FastAPI, MongoDB, and a custom React frontend. The system supports user login, book borrowing/returning, admin CRUD controls, and JWT-based authentication.

FastAPI Swagger UI

Authentication

Every route is protected with role-based access using JWT tokens. The Swagger docs UI lets you test endpoints while handling token-based access headers. Admin and user roles are clearly defined at login.

JWT Auth on Swagger UI

Live MongoDB Integration

All book and user data is stored in a live MongoDB Atlas cluster. The FastAPI backend reads, writes, and updates collections in real-time with automatic validation and data model enforcement.

MongoDB Atlas Screenshot

UI: Borrow & Recommend

Users can view borrowed books and receive dynamic reading suggestions. The recommendation system uses a simple logic-based engine to offer book suggestions based on previous borrow history.

Recommendation Page

Admin Dashboard

Admins have full access to manage books and users, including adding new books, editing entries, and deleting records. UI feedback clearly displays book status and ownership per user.

Admin Dashboard with All Books

Collaborators