/devops-app

Primary LanguageTypeScript

TODO APP

NodeJS api to manage tasks.

Setup

npm install

Docker

export PORT=3000
make build
make run

Run it

PORT=<some-port> npm start

Routes

New Task

# body:
#  {
#    description: text,
#    title: text,
#    status: ACTIVE || DONE
#  }
POST @localhost:PORT/task/new

Find task by ID

GET @localhost:PORT/task/:id

Update status by ID

# body:
#  {
#    status: ACTIVE || DONE
#  }
PUT @localhost:PORT/task/:id/update