Files
fn-serverless/examples/tutorial/hotfunctions/http/go/README.md
James Jeffrey c7f3066c75 Update references remove refs to treeder oracle funcy (#376)
* Remove lots of refs to iron and funcy oracle etc..

* more ref replacements

* Replacing more refs. Treeder

* Use Fn not FN
2017-09-29 16:22:15 -07:00

26 lines
625 B
Markdown

# Hot Function Example
This is an example of a hot function. The [hot function documentation](/docs/hot-functions.md) contains an analysis of how this example works.
### How to run the example
Install the CLI tool, start a Fn server and run `docker login` to login to DockerHub. See the [front page](/README.md) for instructions.
Set your Docker Hub username
```sh
export Fn_REGISTRY=<DOCKERHUB_USERNAME>
```
Build and deploy the function to the Fn server (default localhost:8080)
```sh
fn deploy --app hot-app
```
Now call your function:
```sh
curl -X POST -d "World" http://localhost:8080/r/hot-app/hotfn-go
```