Cloud
Cloud Installation
Get started with Firebridge on React.
Install the package
In order to use the cloud utils, you must install the @firebridge/cloud
package. You must also have the firebase admin SDK installed.
Usage
You can browse the sidebar to see the different utilities available. Below are just a few ideas that will help you get started.
Define Actions
In many cases, you will want to define some actions that can be performed on your database. You can use the firestoreSet
, firestoreUpdate
, and firestoreDelete
utilities to create these actions. These might be stored in @/actions/...
.
Create Callables
You can use the callable
utility to define invokeable actions. These actions can be invoked from the client using the invoke
utility. These could be stored in @/callables/...
.