๐ New Release: Library Books API v1.1.0 โ Now with Auth and Enhanced Filtering!
Hey Devs! ๐
I'm excited to share that version 1.1.0 of my Library Books Backend API is now live! This update brings a bunch of quality-of-life improvements, especially for developers building full-stack apps with user authentication and MongoDB.
๐ Key Features
๐ User Authentication (Login + Logout)
You can now register users, securely log them in using JWT tokens, and manage access to protected routes!
๐ Book Management with MongoDB
All book data is stored in MongoDB, with support for:
- Adding new books
- Retrieving all books
- Filtering free books based on
price
("Free", "0", or 0)
๐ Improved API Responses
Consistent JSON responses across all routes โ no more missing fields!
๐ Bug Fixes
- Fixed
"Illegal arguments: string, undefined"
caused by usingUser.find()
instead offindOne()
. - Resolved a MongoDB Atlas connection failure due to bad auth.
- Ensured that the
price
field is always included in the book data returned from the database.
๐งช Example Book Object
{
"name": "Story Book",
"title": "A Friend and a Foe",
"price": "Free",
"category": "Story",
"image": "https://cdn.pixabay.com/photo/2018/01/18/09/13/book-3089857_1280.jpg"
}
Top comments (1)
Been cool seeing steady progress - it adds up. what do you think actually keeps things growing over time? habits? luck? just showing up?