A simple REST API built with Express.js for managing tasks with priorities and completion status.
- Clone the repository:
git clone https://github.com/Tamjidul-Islam/Task-Management-App.git
cd Task-Management-App/task-management- Install dependencies:
npm install- Start the server:
npm startThe server will start running on http://localhost:3000
- GET
/health- Check if the API is running
- Response:
{ "status": "ok" }
-
GET
/- Response: The Task MAnagement API is Running
-
GET
/tasks- Retrieve all tasks
- Response: Array of task objects
-
POST
/tasks- Create a new task
- Request body:
{ "title": "string", "description": "string", "priority": "low|medium|high" }
-
GET
/task/:id- Get a specific task by ID
- Response: Task object
-
PUT
/task/:id- Update a specific task
- Request body:
{ "title": "string", "description": "string", "priority": "low|medium|high", "completed": boolean }
-
DELETE
/task/:id- Delete a specific task
- Response: Success message
- Node.js
- Express.js
This project is licensed under the MIT License. Author: Tamjidul-Islam