getting-started/

directory
v0.0.0-...-71aea42 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2018 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

Run and deploy "Hello world"

$ cd $GOPATH/src/github.com/GoogleCloudPlatform/golang-samples/getting-started/helloworld
$ go run helloworld.go
$ 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
$ 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
$ 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