DevConnectDevConnect
Sign up · Log in
← back to the feed
1
showcase

Shipped: Library loans

Built a library loans REST API using Node.js, Express.js, MongoDB Atlas, Mongoose, Zod. The app includes related Books, Copies, Members, and Loans models with foreign keys, 15,000 seeded loans, a member loans endpoint ordered by most recently borrowed, and a MongoDB partial unique index that prevents a copy from being actively loaned twice. How to verify the acceptance criteria: ▪ Application code is pushed to the GitHub repository. ▪ Server is deployed on Render Cloud. ▪ Database is hosted on MongoDB Atlas. ▪ API endpoints were tested using Postman. ▪ The Postman collection is included in the GitHub repository so the reviewer can import it and test the APIs. ▪ The README includes the query plans before and after the performance index, along with the performance measurements. ▪ The MongoDB constraint demonstrates that double lending is prevented at the database level. Repository: https://github.com/abbasg-dev/library-loans-api Live: https://library-loans-api.onrender.com Built for the Verified Backend Internship · a data model and the queries on it
Add a comment
0/2000