grpc/examples/tips
Craig Tiller 4d0fb5f1c0 Fixup callers with new api 2015-02-09 16:27:22 -08:00
..
README Only add project_id for GCE command line. 2015-02-03 15:19:05 -08:00
empty.proto Impelment full logic of publish and subcribe. 2015-02-02 10:45:17 -08:00
label.proto Impelment full logic of publish and subcribe. 2015-02-02 10:45:17 -08:00
main.cc fixed typos and add ListTopics implementation. 2015-02-03 10:28:39 -08:00
publisher.cc change stringstream to ostringstream. 2015-02-03 10:51:24 -08:00
publisher.h fixed typos and add ListTopics implementation. 2015-02-03 10:28:39 -08:00
publisher_test.cc Fixup callers with new api 2015-02-09 16:24:20 -08:00
pubsub.proto fixed typos and add ListTopics implementation. 2015-02-03 10:28:39 -08:00
subscriber.cc fixed typos and add ListTopics implementation. 2015-02-03 10:28:39 -08:00
subscriber.h fixed typos and add ListTopics implementation. 2015-02-03 10:28:39 -08:00
subscriber_test.cc Fixup callers with new api 2015-02-09 16:27:22 -08:00

README

C++ Client implementation for Cloud Pub/Sub service (TIPS)
(https://developers.google.com/apis-explorer/#p/pubsub/v1beta1/).

"Google Cloud Pub/Sub" API needs to be enabled at
https://console.developers.google.com/project to open the access for a client. 
Select the project name, select the "APIs" under "APIs & auth", and turn
on "Google Cloud Pub/Sub" API. 

To run the client from Google Compute Engine (GCE), the GCE instance needs to
be created with scope "https://www.googleapis.com/auth/cloud-platform" as below:

gcloud compute instances create instance-name 
    --image debian-7 --scopes https://www.googleapis.com/auth/cloud-platform
   
To run the client from GCE:
make tips_client
bins/opt/tips_client --project_id="your project id"
    
A service account credential is required to run the client from other
environments, which can be generated as a JSON key file from
https://console.developers.google.com/project/. To run the client with a service 
account credential:

bins/opt/tips_client
    --project_id="your project id"
    --service_account_key_file="absolute path to the JSON key file"