registry/vendor/google.golang.org/cloud/examples/bigtable/bigtable-hello
Olivier Gambier 77e69b9cf3 Move to vendor
Signed-off-by: Olivier Gambier <olivier@docker.com>
2016-03-22 10:45:49 -07:00
..
app.yaml Move to vendor 2016-03-22 10:45:49 -07:00
helloworld.go Move to vendor 2016-03-22 10:45:49 -07:00
README.md Move to vendor 2016-03-22 10:45:49 -07:00

Cloud Bigtable on Managed VMs using Go

(Hello World for Cloud Bigtable)

This app counts how often each user visits.

Prerequisites

  1. Set up Cloud Console.
  2. Go to the Cloud Console and create or select your project. You will need the project ID later.
  3. Go to Settings > Project Billing Settings and enable billing.
  4. Select APIs & Auth > APIs.
  5. Enable the Cloud Bigtable API and the Cloud Bigtable Admin API. (You may need to search for the API).
  6. Set up gcloud.
  7. gcloud components update
  8. gcloud auth login
  9. gcloud config set project PROJECT_ID
  10. Download App Engine SDK for Go.
  11. go get -u google.golang.org/appengine/...
  12. In helloworld.go, change the constants project, zone and cluster

Running locally

  1. From the sample project folder, gcloud preview app run app.yaml

Deploying on Google App Engine Managed VM

  1. Install and start Docker.
  2. From the sample project folder, aedeploy gcloud preview app deploy app.yaml