Gateway with Javascript

This recipe is a gateway which runs some javascript.

Installation

  • Install Go
  • Install the Flogo CLI

Setup

git clone https://github.com/project-flogo/jsexec
cd jsexec/examples/microgateway/json

Testing

Create the gateway:

flogo create -f flogo.json
cd MyProxy
flogo build

Start the gateway:

bin/MyProxy

Run the following command:

curl http://localhost:9096/calculate"

You should see the following like response:

{"sum":3}