Prepare the App

Page last updated:

Page last updated:

In this step, you will prepare a simple application that can be deployed. Execute the following commands to clone the sample application:

$ go get -d github.com/swisscom/cf-sample-app-go
$ cd "${GOPATH}/src/github.com/swisscom/cf-sample-app-go"

You now have a functioning git repository that contains a simple Go application as well as a glide.yaml file, which is used by our dependency manager Glide.

In case you are using dep, here is an example:

$ go get -d github.com/swisscom/cf-sample-app-go-dep
$ cd "${GOPATH}/src/github.com/swisscom/cf-sample-app-go-dep"

Note: In case you are stuck during the tutorial, you can always check out the final-result branch of the sample app repo to see what your code should look like.

I cloned the App source
View the source for this page in GitHub