Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Adding more cloud functions to a firebase project

In https://firebase.google.com/docs/hosting/functions there's an example of creating a project with a single Cloud Function that serves web requests.

For my project, I'd like to have a function that serves web requests, but also add another function that's triggered by Cloud Scheduler that changes some entries in a database table. How can I add a second cloud function to the project and deploy both of them and link the second one to Cloud Scheduler?

Thanks in advance.

0 1 270
1 REPLY 1

I'm thinking that you can go straight to Google Cloud Functions ... see here ... https://cloud.google.com/functions and create a new function.

It is my understanding that when one creates a Firebase project, that also creates a corresponding Google Cloud project giving you access to all the features of Google Cloud.   That will include Cloud Scheduler and Cloud Functions.  Take the time to understand the costs involved.