andrewreutter / pipelines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pipelines

The pipelines package provides a way for developers to:

  • Define microservices that convert between media formats.
  • Compose graphing pipelines of those microservices.

Hello world

To start a cluster of local pipeline servers:

  1. Make sure you have node installed
  2. cd to the project directory
  3. npm install
  4. node server.js

You should see messages in the console:

Serving function at crud://media
Serving function at crud://conversion_request
Serving function at http://localhost:3000/create-media
Serving function at http://localhost:3001/search-media
Serving function at http://localhost:3002/create-conversion-request
Serving function at http://localhost:3003/search-conversion-request
Serving function at http://localhost:3004/pipeline-display_ad
Serving function at http://localhost:3005/pipeline-liner_ad

To send a payload to the display_ad entry point:

  1. Copy the full url for /pipeline-display_ad from the messages in the console.
  2. curl -H "Content-Type: application/json" -X POST -d '{"pdf":"abc"}' URL

Code walkthrough

Start by looking at server.js, which is the beginning of the breadcrumb trail.

About


Languages

Language:JavaScript 100.0%