This is the backend API for Readora, a library management system. It manages books, user borrowing history, and provides secure endpoints to support client-side operations like borrowing, returning, and retrieving book data.
π Live Site: https://redora.vercel.app/
- π Books API (CRUD for admin, Read for users)
- π§βπΌ Borrowed books tracking by user email
- ππ JWT-based route protection
- π¦ MongoDB database integration
- π RESTful API structure with Express.js
GET /books: Get all booksGET /books/:id: Get details for a specific bookPOST /borrow: Add a borrowed bookGET /borrowed/:email: Get books borrowed by a specific userDELETE /borrowed/:id: Return (delete) a borrowed book
- Express.js
- MongoDB
- CORS
- dotenv
- jsonwebtoken (JWT)
- nodemon
npm install
npm start