This recipe is a gateway which runs some javascript.
git clone https://github.com/project-flogo/contrib/activity/jsexec
cd jsexec/examples/microgateway/api
Start the gateway:
go run example.go
Run the following command:
curl http://localhost:9096/calculate"
You should see the following like response:
{"sum":3}