April 2018
Intermediate to advanced
250 pages
5h 42m
English
This is another FaaS project covered by this book. We quickly do hello world by installing the Fn CLI. Then use it to start a local Fn server, create an app, and then create a route that links to a pre-built Go function under the app. After that, we will use the curl command to test the deployed hello world function.
Here's the standard command to install the Fn client:
$ curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sudo sh
After that, we can use the fn command. Let's start an Fn server. Use --detach to make it run in the background:
$ fn start --detach
Well, if we see a container ID, it is good to go. Next, quickly create an Fn app and call it goapp:
$ fn apps create goapp
Then, we ...
Read now
Unlock full access