A RESTful API backend service for managing todo tasks, built with Node.js.
- Clone the repository
- Install dependencies:
npm install
- Create a
.env
file with the following variables:
PORT=3000
MONGODB_URI=your_mongodb_connection_string
- Start the server:
npm start
GET /api/tasks
- Get all tasksPOST /api/tasks
- Create a new taskGET /api/tasks/:id
- Get a specific taskPUT /api/tasks/:id
- Update a taskDELETE /api/tasks/:id
- Delete a task
POST /api/tasks
{
"title": "Complete project",
"description": "Finish the todo API implementation",
"dueDate": "2024-01-20",
"status": "pending"
}
- Node.js
- Express.js
- MongoDB
- Mongoose
MIT