Please enable JavaScript.
Coggle requires JavaScript to display documents.
Firebase - Coggle Diagram
Implementation path
2 Write functions
-
OnCall
-
-
after than, you can you 'update' to insert/update/delete data
Write JavaScript code (or TypeScript code to transpile at deployment) to handle events from Firebase services, Google Cloud services, or other event providers.
4 Deploy and monitor
-
Enable billing for your project and deploy your functions using the Firebase CLI. You can use the Firebase console to view and search through your logs.
-
-
Cloud Functions for Firebase is a serverless framework that lets you automatically run backend code in response to events triggered by Firebase features and HTTPS requests. Your code is stored in Google servers so there’s no need to manage and scale your own.
-
Use only the functions.https backend API to write callable functions. The HTTP trigger API is entirely separate and not interoperable with callable functions. :!:
Database
Cloud Firestore
Firestore is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud. It keeps your data in sync across client apps through realtime listeners and offers offline support for mobile and web so you can build responsive apps that work regardless of network latency or Internet connectivity.
Realtime Database
The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client, with cross-platform support for iOS, Android, Web and more.
-
-
-
-
-
-
onWrite Triggered when onCreate, onUpdate or onDelete is triggered.
Cloud Firestore events will trigger only on document changes. An update to a Cloud Firestore document, where data is unchanged (a no-op write), will not generate an update or write event. It is not possible to add events to specific fields. :!:
With Cloud Functions, you can handle events in the Firebase Realtime Database/Firestore with no need to update client code. :check: