Getting started with Cloud Functions

preview_player
Показать описание
Cloud Functions allows you to write server code that responds to events. You can respond to HTTP requests and events from within the Firebase ecosystem.

This lets you respond to events in services like Firestore, Authentication, Storage, Realtime Database, and so many other Firebase services.

Chapters:
0:00 - Serverless concurrency, eventings, and scale
1:35 - Setting up the Firebase CLI to boilerplate functions
2:20 - Setting up a project
4:35 - Project structure
5:30 - The anatomy of a function
7:24 - https events: handling requests and responses
9:23 - Running the local emulator suite
10:38 - Setting up breakpoint debugging in functions
12:23 - Deploying Cloud Functions
13:28 - Firestore triggers
15:08 - Best practice: promises & background triggers
15:46 - Running the Firestore local emulator & function shell
18:25 - Before building! Make sure to check out Extensions.

Resources:

#FirebaseFundamentals #Firebase
Рекомендации по теме
Комментарии
Автор

I've been using functions for a long time and learned so much during this video... Wish this had come out when I started w/ Firebase 🙂

More like this please

ufmemo
Автор

Great video . If you have problem like I did starting firestore emulator with provided code "npx firebase emulators:start --only firestore" simple do run on your terminal "firebase setup:emulators:firestore" then "firebase init" use "space bar" to select firestore. After all that is complete run "npx firebase emulators:start --only firestore" to start your firestore emulator. Happy coding

otifelix
Автор

shoutout to cloud function hellworld all seriousness though, great tutorial.

Ryan-zzhh
Автор

Fantastic video. Easy to follow and nicely explained. Thankyou. Very cool tech.

cindysi
Автор

I agree these videos make it easier to learn .

jss_developer
Автор

Just a quick tip:

If you want to use firestore your emulator port must be same as the function emulator port.

In my case I was using the firebase-admin-sdk and the function port was 5000 & firestore emulator at 5001, so instead of the local emulator it directly push the data in the production firestore.

anmolsharma
Автор

Amazing video... Really well explained

srivats
Автор

please make a video on how to integrate google sign in and then store the user in firestore. also, how to test the auth api..

mojammelhossain
Автор

Great video, but when will I be able to write functions in dart?

ejasackey
Автор

Never knew about the function shell feature.

antoineweb
Автор

you guys skipped out on all the permissions steps im stuck with generic error related to service role permissions 😔😔

SamiSabirIdrissi
Автор

function name has to be lowercase? but the sample code provided by firebase is "helloWorld", aka not lowercase

antoineweb
Автор

hello mr firebase this is an epic video i wll like an subscrib !!

applesheep
Автор

Help, run test with onDocumentCreated for the 2gen in the emulator and it generates errors, how can I identify what the error is?

JuanLopez-zhsp
Автор

How to pass parameters (Key value pairs) for test functions?

chaminduchanaka
Автор

Can you guys switch to dark backgrounds please?

CharlesAE
Автор

I checked and we can use capital letters as well. yes?

mkrzyzowski
Автор

Somehow cloud functions that I wrote, tested and installed in 2021 in about an hour using my local firebase cli took about 45 minutes start to finish including watching a Youtube how to video of 7 minutes. Now moving these scripts from v1 ti v2 has taken two days. AI is garbage, CLI docs are crap and this ONE YEAR video is mildly helpful but where are the rest promised?

Nesbiteme
Автор

David is amanzing to pass us good content! 🪄

luizuk
join shbcf.ru