gcf-recipes icon indicating copy to clipboard operation
gcf-recipes copied to clipboard

A collection of sample code for Google Cloud Functions

Coverage Status

Google Cloud Functions Recipes (Unofficial)

  • Publishing messages to Google Cloud Pub/Sub
  • Reading from a Google Cloud Storage Bucket
  • Word Count Master/Worker example using HTTP Invocation
  • Word Count Master/Worker example using Cloud Pub/Sub
  • Sending email with SendGrid
  • Sending SMS messages with Twilio
  • Reading and Writing with Google Cloud Datastore
  • Exporting data to Google Cloud BigQuery
  • OCR using Cloud Vision API and Google Translate API

Notes on deployment

If you have a large number of dependencies in your package.json file and you run npm install locally, you may find deployments to be slow because you will be deploying your fully-materialized node_modules folder. If you don't have any private modules in your node_modules folder we recommend you rm -rf node_modules prior to invoking deploy

Coming Soon...

  • Processing Cloud Logging events
  • Responding to Google Drive events
  • Processing GMail events
  • Authentication
  • Using HTTP Basic Authentication
  • Using a simple shared key
  • Validating JSON Web Tokens (JWTs)
  • Sending messages to a Slack channel
  • Making payments with Stripe
  • Executing algorithms in Algorithmia.io