wjimenez5271 / iron-func-demo

"Hello World" exercise on Iron Functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iron-func-demo

"Hello World" exercise on Iron Functions.

Running

First download Iron Functions CLI (fn). https://github.com/iron-io/functions#cli-tool

Set the API endpoint and your Docker hub user name environment variables

export API_URL=http://host:8080
export DOCKER_HUB_USERNAME=myname

Run deploy.sh

./deploy.sh

This will deploy the application to the Iron Functions stack and create a route. You can then access this at

http://host:8080/r/myapp/hello

which should yield

curl -i http://host:8080/r/myapp/hello
HTTP/1.1 200 OK
Date: Wed, 29 Mar 2017 18:39:44 GMT
Content-Length: 12
Content-Type: text/plain; charset=utf-8

Hello World!

About

"Hello World" exercise on Iron Functions

License:Apache License 2.0


Languages

Language:Go 66.2%Language:Shell 33.8%