This recipe is a gateway which runs some javascript.
git clone https://github.com/project-flogo/jsexec
cd jsexec/examples/microgateway/json
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}