I have a NodeJS script that fetches data from sports API. I want to execute this script every day midnight and send the data received to Firebase realtime database. Can I use Google Cloud Functions to schedule this task to run everyday? This script does not have any http urls to hit. It is just a script.
Also, can we connect firebase realtime database to a Nodejs script (not a web app) ? Because in all tutorials, they refer to connecting firebase to web app. Is this possible to do?
My idea is, the NodeJS script will run every midnight to feed data to firebase database. I will have another web app connected to firebase that will receive this data and displays to the front end. How can I achieve this using google cloud functions?
Many thanks,

