how or with what do I execute the route or function of a web application?

0

I have a system or device that sends data to the database, when that data arrives I have a function that executes them and sends other data in response to the database. the question is, how can I make that function run always without having to open it in a browser and without needing a user to do it? that I do to detect routes through googlemaps api I'm working with angular, firebase and the googlemaps API

    
asked by alexander SRC 22.07.2017 в 20:31
source

1 answer

0

From what I understand you are trying to execute a function in Firebase without user interaction. The simplest thing would be to implement a scheduled task (cron) on your server and call a URL exposed by a Firebase functions to do what you do today by hand since the functions nowadays do not support scheduled tasks.

I leave an article that explains a way to do it using Google Cloud , although it can be done with any server that can call an HTTP address.

    
answered by 28.07.2017 в 20:25