cri-o/vendor/cloud.google.com/go/examples/bigtable/usercounter
Jacek J. Łakis bf51655a7b vendor: Update vendoring for the exec client and server implementations
Signed-off-by: Jacek J. Łakis <jacek.lakis@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2017-04-24 18:38:41 +02:00
..
app.yaml vendor: Update vendoring for the exec client and server implementations 2017-04-24 18:38:41 +02:00
main.go vendor: Update vendoring for the exec client and server implementations 2017-04-24 18:38:41 +02:00
README.md vendor: Update vendoring for the exec client and server implementations 2017-04-24 18:38:41 +02:00

User Counter

(Cloud Bigtable on Managed VMs using Go)

This app counts how often each user visits. The app uses Cloud Bigtable to store the visit counts for each user.

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 main.go, change the project and instance constants.

Running locally

  1. From the sample project folder, dev_appserver.py app.yaml.

Deploying on Google App Engine flexible environment

Follow the deployment instructions.