This tutorial is an introduction to Google's Appengine and Pub/Sub. It is an example of what a service responding to an event-driven system might look like.
This tutorial builds on the "hello world" Google App Engine tutorial.
-
Walk through the Google Node.js App Engine tutorial
-
Create a Twitter app account
-
Create a topic and subscription.
gcloud beta pubsub topics create <your-topic-name> gcloud beta pubsub subscriptions create <your-subscription-name> \ --topic <your-topic-name> \ --push-endpoint \ https://<your-project-id>.appspot.com/pubsub/push?token=<your-verification-token> \ --ack-deadline 30
- Modify the initial "hello world" app with
app-v1.js
. We will add our own Twitter app credentials and it will tweet as we start our app. - Walk through the
appengine/pubsub
tutorial - Combine
app-v1
and the pubsub tutorial intoapp-v2.js
.