Git Product home page Git Product logo

googlecloudfunctions-training's Introduction

Google Cloud Functions Training

Refer to the Google Cloud Functions Tutorial Series, which is a companion set of blog posts for all the examples covered here.

This project contains multiple projects that will be used during the training. Each of the projects is a Google Cloud Function that will be demonstrated during the course.

The projects are:

  • helloworld-http : Cloud Function with HTTP Trigger. Does not require any parameters to be passed.
  • hellogreeting-http : Cloud Function with HTTP Trigger. Takes in a data parameter that is a JSON formatted data.
  • uuid-http : Cloud Function with HTTP Trigger. Demonstrates use of external dependencies.
  • hello-gcs : Cloud Function with GCS Trigger. It gets invoked when a file is created/updated in GCS.
  • hello-pubsub : Cloud Function with PubSub Trigger. It subscribes to a topic and is invoked when a message is published to that topic.
  • hello-localfunctions : Cloud Function with HTTP Trigger. This is used to demonstrate the local functions tool and debugging functions locally.
  • bitcoinprice-http : Cloud Function with HTTP Trigger. This function makes a call to Coinbase API for Bitcoin price and returns back a Hangouts message format.
  • translation-process : Cloud Function with GCS Trigger. This function gets triggered when files are uploaded in the configured GCS Bucket. It will then invoke the Translation API to translate the documents to Spanish and place the translated files in another GCS bucket.
  • getrandomquote-function : Cloud Function with HTTP Trigger. This function acts as an API and returns a random quote.
  • firestore-http : Cloud Function with HTTP Trigger. This function demonstrates how to build a quiz powered by Firestore database.
  • puppeteer : Cloud Function with HTTP Trigger. This functions demonstrates how to use headless Chrome via Puppeteer npm library. It accesses a web page and extracts out the image from the web page.
  • environment : Cloud Function with HTTP Trigger. It demonstrates how to read Environment Variables in your function.

You can use Google Cloud Shell here to clone the repository. Simply click on the "Open in Cloud Shell" button below. This will clone the repository in your Google Cloud Account's Cloud Shell.

Open in Cloud Shell

Running Tutorials in Google Cloud Shell

You will tutorial.md files present in the following folders of the cloned repository:

  • helloworld-http
  • hellogreeting-http
  • uuid-http
  • hello-gcs
  • hello-pubsub
  • getrandomquote-function

From Google Cloud Shell, simply go to the respective folder and then launch the tutorial in Google Cloud Shell via the teachme tutorial.md command.

For e.g. to launch the tutorial for helloworld-http, do the following:

$ cd helloworld-http
$ teachme tutorial.md

Other Files

  • cleanup.txt : Contains a set of gcloud commands to delete all the Google Cloud Platform resources created i.e. Cloud Functiosn, Cloud Pub/Sub Topic, Cloud Storage Bucket, etc. This script can be useful to start from scratch. Just ensure that you have done a gcloud auth login and gcloud config set project <project-id> for the particular Google Cloud Platform project.
  • deploy.txt : Contains a set of gcloud commands to deploy all the above Cloud Functions.
  • commands.txt : A set of useful commands that are used throughout the training.

googlecloudfunctions-training's People

Contributors

rominirani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.