Skip to content

TUSHAR-30/backend-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Task Manager API (Node.js & Express)

This is a simple REST API for managing tasks using Node.js and Express.js.

πŸš€ API Features

  • GET /api/tasks β†’ Returns a list of tasks
  • POST /api/tasks β†’ Adds a new task
  • DELETE /api/tasks/:id β†’ Deletes a task by ID

πŸ› οΈ Installation & Setup

  1. Clone the repository:

    git clone https://github.com/TUSHAR-30/backend-task.git
    cd backend-task
  2. Install Dependencies:

    npm install
  3. Start the development server:

    npm start
  4. Open the app in your browser:

    http://localhost:3000

πŸ“Œ Example API Requests (Using Postman or cURL)

  • Get all tasks
curl -X GET http://localhost:3000/api/tasks
  • Add a new task:
curl -X POST http://localhost:3000/api/tasks -H "Content-Type: application/json" -d '{"name": "New Task", "completed": false}'
  • Delete a task:
curl -X DELETE http://localhost:3000/api/tasks/1

πŸ“œ License

This project is for evaluation purposes only.

About

This repository contains Building of a Basic API with Node.js and Express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published