Firebase Functions

1 min. read

Functions

Promise States:
Pending
Fulfilled
Rejected

Rules for terminations a Cloud Function
HTTP Triggers - send a response at the end
Background triggers - return a promise

Triggers
Cloud Firestore Triggers
Realtime Database
Firebase Authentication
Google Analytics for Firebase
Crashlytics
Cloud Pub/Sub
HTTP Triggers

References
https://www.youtube.com/watch?v=DYfP-UIKxH0&list=PLl-K7zZEsYLkPZHe41m4jfAxUi0JjLgSM

https://firebase.google.com/docs/functions/typescript

Firebase
Setup Config Values
email=”EMAIL”
password=’PASSWORD’

firebase functions:config:set gmail.email=$email gmail.password=$password -P dev

/functions/.runtimeconfig.json:
{
“gmail”: {
“password”: “‘PASSWORD’”,
“email”: “EMAIL”
}
}

asd

Firebase API Design
https://medium.com/@atbe/firebase-functions-true-routing-2cb17a5cd288
https://medium.com/@atbe/firebase-functions-true-routing-2cb17a5cd288
https://itnext.io/lessons-from-a-long-week-with-firebase-b433ce8ee49e
https://stackoverflow.com/questions/39191556/creating-an-api-with-firebase-3
https://www.skcript.com/svr/creating-restful-api-firebase/
https://www.quora.com/Should-I-use-REST-API-or-just-firebase-to-make-an-app-like-Uber-or-both
https://cloud.google.com/endpoints/
https://github.com/makcakaya/FirebaseAwsCustomAuth
Cron Job

exports

References
https://medium.com/codingthesmartway-com-blog/introduction-to-firebase-cloud-functions-c220613f0ef