Setting up cloud functions with firebase
This is optional. Use it only to run functions in the cloud
Last updated
This is optional. Use it only to run functions in the cloud
Last updated
Start by activating cloud functions on firebase:
Functions in the cloud can be used for several reasons:
You need a function that runs every now and then
You need heavy actions that can be triggered by the client, but need to run on something bigger than a phone
Higher security for actions made by users, for other user accounts
Open the terminal and paste in the following command:
The cloud functions available are only two: One to check user membership, and another one to verify the token from the user to authenticate OpenAI requests. (Can be used for any other service your app requires)
Run the following commands to log in to firebase and to upload your functions to the cloud:
Required Installation:
Login to your firebase account from the terminal:
Deploying all the functions to remote: