
Learn to implement Google Cloud functions with Python using virtual environments and documentation. Deploy with the Firebase CLI, test with Postman, and schedule or trigger events from Firestore.
Set up a google cloud functions project by signing in, activating the free tier with $300 credit, and using the firebase console to name the project cloud functions course.
Add your Google Cloud functions project to a GitHub repository, using a Readme, gitignore, and your first commit to master. Learn branch basics and production practices.
Staging changes with git add ., committing with descriptive messages, and pushing to the develop branch, including a virtual environment, requirements.txt, readme updates, and gitignore rules.
Implement a simple hello world Google Cloud Function in Python, using the Functions Framework and Flask, handling request args and a name parameter, and test locally.
Pass multiple arguments via the URL and send JSON objects to a Python-based Google Cloud Function, testing with Postman and using request.args and request.json.
Deploy your first cloud function to google cloud platform by configuring gcloud, selecting the project, and deploying a hello world function in Main.py with python 3.7 and an http trigger.
Learn to send emails from Google Cloud Functions using SendGrid, manage environment variables, and secure endpoints with API keys and parameter checks.
Test a SendGrid cloud function by configuring the SendGrid API key, debugging with 200 and 400 responses, and sending a JSON email payload via Postman to verify delivery.
Enforce bearer token authentication and post-only requests to secure Google Cloud Functions; tests show 405 for non-post and 401 for invalid token, with successful email delivery.
Define a get bearer token function that validates the authorization header, handles missing tokens with a 401, and extracts the token from request.headers, preparing tests in Postman.
Deploy a Google Cloud Function with environment variables using env.yaml and a requirements.txt, including Flask and SendGrid, then deploy with gcloud functions deploy and an http trigger.
Understand why cross-origin resource sharing blocks browser calls to cloud functions and learn how to enable fetch requests from a web app.
Commit all changes from the root directory with git add ., git commit implemented send mail cloud function and deploy it to Google Cloud Platform, then git push.
Learn how to add pycache to .gitignore and remove it from the repo by running git rm -r --cached, then commit and push to keep the repository clean.
Enable cross-origin access on a Google Cloud function by returning access control allow origin headers and handling the preflight options, then test a json post fetch.
Set up a firestore database with production rules, generate and secure google credentials in a private key JSON, add credentials to git ignore, and prep for using the Firebase SDK.
Create a Python Google Cloud function using the Firebase Admin SDK to add expense documents to Firestore with a created at timestamp and amount, and test it.
Deploy our new cloud function to GCP and verify it creates a new expense document when invoked, noting the endpoint is insecure and that the function runs once per invocation.
Commit and push changes to add a new cloud function that writes expense data to a Firestore collection, using git add and git commit.
Learn to scale Google Cloud Functions using pub/sub topics and Cloud Scheduler; configure HTTP endpoints, crontab frequencies, and deployment steps to automate function execution.
Learn how to delete deployed google cloud functions using gcloud functions delete, verify removal, and document the process for scalable cloud function management.
Master Google Cloud Functions with Python by building, testing with Postman and browser, deploying, and scaling using virtual environments and GitHub version control plus basic security.
Cloud Functions are one of the most useful things you can learn this year! Have you heard of APIs? Well, it can be difficult to deploy them and actually use them if you don’t have experience in this topic, but fortunately, Cloud Functions are just like APIs but better! You can execute backend code without having to worry about scaling or managing our servers.
AWS? Azure? GCP?
It doesn't matter.
We will be using GCP in this course, but the platform is not the important thing here. Rather, we focus on the process of constructing Cloud Functions and using best practices to deploy them.
And furthermore, we are going to use one of the simplest yet most powerful programming languages of all times: Python!
It can’t get better.
In this crash course, you will learn lots of things like:
Implement Google Cloud Functions in Python
Use an environment, version control system (Git & Github) and adding meaningful documentation (Markdown)
Test Cloud Functions locally
Deploy Cloud Functions from the terminal
Test deployed Cloud Functions with Postman
Add basic securities (Bearer token) to Cloud Functions
Manage CORS to Cloud Functions to fetch them from the Browser
Schedule Cloud Functions
Delete Cloud Functions
I hope you learn a lot in this course and enjoy as much as I enjoyed doing it!