getting-started/

directory
v0.0.0-...-054a062 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2016 License: Apache-2.0

README

Getting started with Go on the Google Cloud Platform

This repository contains sample code for the Go Getting Started on Google Cloud Platform

Please refer to the guide for full instructions on how to run the samples.

Checking out the code

$ go get -d github.com/GoogleCloudPlatform/golang-samples/getting-started

Install aedeploy

$ go get google.golang.org/appengine/cmd/aedeploy

Run and deploy "Hello world"

$ cd $GOPATH/src/github.com/GoogleCloudPlatform/golang-samples/getting-started/helloworld
$ go run helloworld.go
$ aedeploy gcloud app deploy

Run and deploy "Bookshelf"

$ cd $GOPATH/src/github.com/GoogleCloudPlatform/golang-samples/getting-started/bookshelf/app
$ vim ../config.go
$ go run *.go
$ aedeploy gcloud app deploy

Run and deploy "Bookshelf pub/sub worker"

$ cd $GOPATH/src/github.com/GoogleCloudPlatform/golang-samples/getting-started/bookshelf/pubsub_worker
$ vim ../config.go
$ go run *.go
$ aedeploy gcloud app deploy

Contributing

See CONTRIBUTING.md

License

The source code in this repository is available under the Apache 2.0 license.

Directories

Path Synopsis
Package bookshelf contains the bookshelf database and app configuration, shared by the main app module and the worker module.
Package bookshelf contains the bookshelf database and app configuration, shared by the main app module and the worker module.
app
Sample bookshelf is a fully-featured app demonstrating several Google Cloud APIs, including Datastore, Cloud SQL, Cloud Storage.
Sample bookshelf is a fully-featured app demonstrating several Google Cloud APIs, including Datastore, Cloud SQL, Cloud Storage.
pubsub_worker
Sample pubsub_worker demonstrates the use of the Cloud Pub/Sub API to communicate between two modules.
Sample pubsub_worker demonstrates the use of the Cloud Pub/Sub API to communicate between two modules.
Sample helloworld is a basic App Engine flexible app.
Sample helloworld is a basic App Engine flexible app.

Jump to

Keyboard shortcuts

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