Firebase Functions: Fundamentals

Firebase Functions provide an easy way for developers to run and scale code in the cloud and build event-driven serverless applications. This course will teach you how to create Firebase functions using javascript and typescript.
Course info
Rating
(13)
Level
Intermediate
Updated
Jan 1, 2019
Duration
2h 33m
Table of contents
Description
Course info
Rating
(13)
Level
Intermediate
Updated
Jan 1, 2019
Duration
2h 33m
Description

Firebase Functions lets you automatically run backend code in response to events triggered by Firebase features and HTTPS requests. In this course, Firebase Functions: Fundamentals, you will gain the skills needed to be able to use Cloud Functions for Firebase. First, you will learn the basics of cloud functions. Next, you will explore how to create callable functions and how to call functions directly. Finally, you will also discover how to trigger Firebase functions on different Firebase services like Cloud Firestore, Real-time Database, Authentication, etc. By the end of this course, you will have a foundational understanding of Firebase functions and how to take advantage of it to create sophisticated apps.

About the author
About the author

Ervis is a professional web developer with a strong focus on simplicity. He has a strong hunger for knowledge and a passion for teaching others.

More from the author
Firebase Hosting: Fundamentals
Intermediate
1h 12m
Sep 5, 2018
Firebase Firestore: Getting Started
Beginner
1h 24m
Mar 15, 2018
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone, and welcome to my course, Firebase Functions: Fundamentals. My name is Ervis Trupja, and I'm a self-employed web developer and trainer. In this course, we are going to talk about cloud functions for Firebase. It's a great service which allows us to run back-end code in response to events triggered by Firebase features and HTTP requests. Some of the major topics that we will cover include understanding cloud functions, calling, triggering, and writing Firebase functions, testing Firebase functions, and upgrading Firebase functions. By the end of this course, you'll know enough to take advantage of the amazing Firebase functions as a serverless compute solution for creating event-driven applications. Having previous experience with other Firebase services is recommended, but it is not required. I hope you will join me on this journey to learn Firebase functions with the Firebase Functions: Fundamentals course here, at Pluralsight.

Getting Started
Hi, and welcome to my course, Firebase Functions: Fundamentals. I am Ervis Trupja, and together we are going to explore Firebase functions. Cloud functions for Firebase is a Firebase service which lets you automatically run back-end code in response to events triggered by Firebase features and the HTTP requests. There is no need to manage and scale your own servers because your code is stored in Google's cloud and runs in a managed environment. But what are we going to learn on this course? We are going to start with the basic concepts of the cloud functions. We will give examples so we can better understand it. Then later, we will learn how to call a Firebase function, how to trigger, write, test, and monitor Firebase functions. And at the end of this course, assuming that you already have experience with the previous versions of Firebase functions, we are going to learn how to upgrade to the latest version. So let's get started.

Calling Functions Directly
Hi, and welcome to the second module of these tutorials. In here, we are going to talk about calling Firebase functions directly. We are going to first create a callable function, and after we create this function, we are going to learn how to set up the client part so we can call this function. And then next, we are going to learn how to trigger functions with an HTTP request, and at the end, we are going to learn how to terminate an HTTP function.

Triggering Firebase Functions
With Cloud functions, you can handle events in different Firebase services with no need to update the client code. And during this module, we are going to talk about some of them. We are going to start with Cloud Firestore triggers, and if you want to learn more about Cloud Firestore, you can check out my course, Firebase Firestore: Getting Started. After that, we are going to work with realtime database triggers, and in here, we are going to see how we can set up a trigger and how to handle the event data. Next, we are going to talk about authentication triggers. And at the end, we will talk about Cloud storage triggers. We will see how to work with Cloud storage files and much more. So let's get started.

Writing Firebase Functions
Hi, and welcome to this module where we are going to talk about writing Firebase functions. We are going to start this module by first talking about managing functions. We are going to talk about deploying functions, deleting functions, and modifying them, like for example, the function name, the region, or the function trigger. Next, we are going to talk about writing functions in TypeScript. So far, we have written our functions using JavaScript. On this part, we are going to see how we can use TypeScript instead of JavaScript to write functions. Then next, we are going to talk about simplifying asynchronous functions. We are going to see how promises work and much more. Then next, we are going to talk about retrying asynchronous functions, and at the end, we are going to talk about some tips and tricks.

Testing Firebase Functions
Hi, and welcome to this module where we are going to talk about testing Firebase functions. But what are we going to learn on this module? We are going to see how we can run functions locally by using the command line and the Cloud Functions shell. Then next, we are going to learn about unit testing functions. We will start with setting up the testing environment, then next, we are going to see how we can test the non-HTTP functions, and at the end, how to test the HTTP functions. So let's get started.

Monitoring Firebase Functions
Hi, and welcome to this module where we are going to talk about monitoring Firebase functions. But what are we going to learn on this module? We are going to start this module by talking about writing logs. Logging is an important tool for debugging and monitoring code. And then we are going to see how we can view the logs. Next, we are going to talk about reporting errors. We will learn about different types of reporting and how we can view them from different sources. Then at the end of this module, we are going to talk about viewing monitored metrics. So let's get started.

Upgrading Firebase Function from Beta Version
Hi, and welcome to the last module of this course. On this module, we are going to talk about upgrading Firebase functions from the beta version. And we are going to start this module by first talking about the background non-HTTP functions. We are going to talk about all the changes and much more. Then next, we are going to talk about the SDK changes by the trigger type. We will mention some of the most important triggers of the Firebase services. So we will talk about the Cloud Firestore trigger, about the Realtime Database trigger, and much more. So let's get started.