Tom Denham 5a2db92663 Add glide.lock and update GCE dependencies hace 8 años
..
README.md 5a2db92663 Add glide.lock and update GCE dependencies hace 8 años
app.yaml 5a2db92663 Add glide.lock and update GCE dependencies hace 8 años
helloworld.go 5a2db92663 Add glide.lock and update GCE dependencies hace 8 años

README.md

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.
    1. Go to the Cloud Console and create or select your project. You will need the project ID later.
    2. Go to Settings > Project Billing Settings and enable billing.
    3. Select APIs & Auth > APIs.
    4. Enable the Cloud Bigtable API and the Cloud Bigtable Admin API. (You may need to search for the API).
  2. Set up gcloud.
    1. gcloud components update
    2. gcloud auth login
    3. gcloud config set project PROJECT_ID
  3. Download App Engine SDK for Go.
    1. go get -u google.golang.org/appengine/...
  4. 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