helloworld

command
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

README

Cloud Bigtable Hello World in Go

This is a simple application that demonstrates using the Google Cloud APIs Go Client Library to connect to and interact with Cloud Bigtable.

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. Provision a Cloud Bigtable instance
  11. Follow the instructions in the user documentation to create a Google Cloud Platform project and Cloud Bigtable instance if necessary.
  12. You'll need to reference your project id and instance id to run the application.

Running

  1. From the hello_world example folder, go run main.go -project PROJECT_ID -instance INSTANCE_ID, substituting your project id and instance id.

Cleaning up

To avoid incurring extra charges to your Google Cloud Platform account, remove the resources created for this sample.

  1. Go to the Clusters page in the Cloud Console.

    Go to the Clusters page

  2. Click the cluster name.

  3. Click Delete.

    Delete

  4. Type the cluster ID, then click Delete to delete the cluster.

Documentation

Overview

Hello world is a sample program demonstrating use of the Bigtable client library to perform basic CRUD operations

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL