cf-example-go

command module
v0.0.0-...-332eb4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2014 License: GPL-2.0 Imports: 11 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/codegangsta/inject
Package inject provides utilities for mapping and injecting dependencies in various ways.
Package inject provides utilities for mapping and injecting dependencies in various ways.
_workspace/src/github.com/coopernurse/gorp
Package gorp provides a simple way to marshal Go structs to and from SQL databases.
Package gorp provides a simple way to marshal Go structs to and from SQL databases.
_workspace/src/github.com/go-martini/martini
Package martini is a powerful package for quickly writing modular web applications/services in Golang.
Package martini is a powerful package for quickly writing modular web applications/services in Golang.
_workspace/src/github.com/go-sql-driver/mysql
Go MySQL Driver - A MySQL-Driver for Go's database/sql package The driver should be used via the database/sql package: import "database/sql" import _ "github.com/go-sql-driver/mysql" db, err := sql.Open("mysql", "user:password@/dbname") See https://github.com/go-sql-driver/mysql#usage for details
Go MySQL Driver - A MySQL-Driver for Go's database/sql package The driver should be used via the database/sql package: import "database/sql" import _ "github.com/go-sql-driver/mysql" db, err := sql.Open("mysql", "user:password@/dbname") See https://github.com/go-sql-driver/mysql#usage for details
_workspace/src/github.com/martini-contrib/render
Package render is a middleware for Martini that provides easy JSON serialization and HTML template rendering.
Package render is a middleware for Martini that provides easy JSON serialization and HTML template rendering.
_workspace/src/github.com/oxtoacart/bpool
Package bpool implements leaky pools of byte arrays and Buffers as bounded channels.
Package bpool implements leaky pools of byte arrays and Buffers as bounded channels.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL