Very easy example using CF GO Buildpack
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Godeps
templates
.gitignore
LICENSE
Procfile
README.md
main.go
manifest.yml

README.md

Very simple and stupid Book management app

Motivation

As a Cloud Foundry evaluator, I would like to try the Go Lang buildpack [1] with a not as simple 'Hello World' app. For example: add MySQL DB

[1] https://github.com/cloudfoundry/go-buildpack

Components

  • Martini Web Framework (github.com/go-martini/martini)
  • Martini Render (github.com/martini-contrib/render)
  • GORM (github.com/coopernurse/gorp)
  • MySQL

Example based on https://gophercasts.io/

NOTE: it only works in run.pivotal.io public PaaS given that it uses 'cleardb' service. This can be very easily changed (recommendation: use an Environment variable)

Cloud Foundry documentation

http://docs.cloudfoundry.org/

Collaborate

You are welcome to contribute via pull request.