A basic CRUD API for a todo list
This project is a simple CRUD (Create, Read, Update, Delete) API for managing a Todo list. It uses Node.js and Express for the server, and MongoDB with Mongoose for the database.
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd Todo_API
-
Install the dependencies:
npm install
-
Start the server:
npm run start
-
The API will be running on
http://localhost:3000
. You can use tools like Postman or CURL to interact with the API endpoints.
GET /task
- Retrieve all todosPOST /task
- Create a new todoGET /task/:id
- Retrieve a specific todo by IDPUT /task/:id
- Update a specific todo by IDDELETE /task/:id
- Delete a specific todo by ID
Mohamed Elesawy
This project is not licensed.