This project is a simple RESTful API built with Node.js, Express, and MongoDB. It demonstrates how to perform basic CRUD (Create, Read, Update, Delete) operations and is ideal for learning or development purposes.
- CRUD Operations: Create, Read, Update, and Delete resources.
- In-Memory Database: Uses an in-memory database for testing and development.
- MongoDB Integration: Connect to a MongoDB database for persistent data storage.
- Express Framework: Lightweight and fast backend framework.
- Environment Configuration: Manage configurations using
.env
file.
Here are the main endpoints for the API:
- GET /items: Retrieve a list of all items.
- POST /items: Add a new item.
- GET /items/:id: Retrieve details of a specific item.
- PUT /items/:id: Update details of a specific item.
- DELETE /items/:id: Delete a specific item.
- Clone the repository:
git clone https://github.com/yourusername/restfulAPI.git