Public Repository

Last pushed: 3 years ago
Short Description
This is a repository containing Chorus.js samples
Full Description

Chorus.js is a new kind of API Orchestration Engine. It's actually not an engine at all. Chorus.js generates a nodejs/mongodb application from a simple orchestration definition (a.k.a as "cord").

These containers include nodejs and mongodb.

The container can be started with the following command:

$ sudo docker run -t -i -p 3000:3000 <the_image_id> /bin/bash

Chorus.js samples can be found at /home/chorus

Start mongodb before starting any sample:

$ mongod & disown
$ cd /home/chorus/sample
$ nodejs calculateArea_v1.js

To run a process:

$ curl -H "Content-Type: application/json" -d '{ "input" : { "a" : "60" , "b" : "200" }}' http://<YOUR_HOST>:3000/calculateArea/v1/receive/calculateRectangleArea

You should get the following response:

{ "process": "calculateArea", "reply" : { "output" : 12000}}
Docker Pull Command