A simple and beginner-friendly Book Management REST API built using Node.js, Express.js, and MongoDB.
This project demonstrates how to build a backend REST API with CRUD (Create, Read, Update, Delete) operations and connect an Express.js application with MongoDB using Mongoose.
- 📖 Get all books
- 🔍 Get a single book by ID
- ➕ Add a new book
- ✏️ Update an existing book
- 🗑️ Delete a book
- 🍃 MongoDB database integration
- 🔗 RESTful API architecture
- ⚡ Express.js backend
- 🛡️ Basic error handling
- 🌱 Environment variable support using dotenv
- Node.js
- Express.js
- MongoDB
- Mongoose
- dotenv
- Postman for API testing.
Book-Management-API/
│
├── controllers/
│ └── book-controllers.js
│
├── database/
│ └── db.js
│
├── models/
│ └── book.js
│
├── routes/
│ └── book-routes.js
│
├── .env
├── .gitignore
├── app.js
├── package.json
└── README.md