bf51655a7b
Signed-off-by: Jacek J. Łakis <jacek.lakis@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1.1 KiB
1.1 KiB
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
- Set up Cloud Console.
- Go to the Cloud Console and create or select your project. You will need the project ID later.
- Go to Settings > Project Billing Settings and enable billing.
- Select APIs & Auth > APIs.
- Enable the Cloud Bigtable API and the Cloud Bigtable Admin API. (You may need to search for the API).
- Set up gcloud.
gcloud components update
gcloud auth login
gcloud config set project PROJECT_ID
- Download App Engine SDK for Go.
go get -u google.golang.org/appengine/...
- In main.go, change the
project
andinstance
constants.
Running locally
- From the sample project folder,
dev_appserver.py app.yaml
.
Deploying on Google App Engine flexible environment
Follow the deployment instructions.