Public | Automated Build

Last pushed: 5 months ago
Short Description
Collect all tasks for a user
Full Description


tasks-user


Microservice to collect a user's task

Inbound messages

This microservice listens for the following messages

  • {role: 'tasks', type: 'user'}
  • {info: 'tasks', type: 'user'}

Outbound messages

This microservice emits the following messages

  • {cmd: 'collect-tasks', type:'user'}

Docker

Build the image

$ docker build -t tasks-user .

Start

$ docker run -d --net host --name tasks-user tasks-user

From hub.docker.com

$ docker run -d --net host --name tasks-user telemark/tasks-user

Call the service

$ curl -d '{"role":"tasks", "type": "user", "user":"gasg"}' -v http://localhost:8000/act
$ curl -d '{"info":"tasks", "type": "user", "data":{"user": "gasg", "system": "npm", "data": ["awsm"]}}' -v http://localhost:8000/act
Docker Pull Command
Owner
telemark
Source Repository