How to automate the process of generating daily report from firebase? [closed]

大兔子大兔子 提交于 2020-01-06 08:21:13

问题


For example, to automate the process of producing a daily report for selected events and the duration of time that unique users spend on some specific event. And it is even better if I can customize the reporting information and have it generated in excel sheet automatically. Any suggestions or ideas would be much appreciated.


回答1:


You could use a Cloud Function to generate you excel report, for example by using excel4node (https://www.npmjs.com/package/excel4node)

And to call this Cloud Function regularly, you have to trigger it via http through a cron-job.

Have a look at:

https://firebase.google.com/docs/functions/http-events).

and

https://www.youtube.com/watch?v=CbE2PzvAMxA

Note: What works quite well too is to generate some PDFs via the Cloud Function, using pdfmake.



来源:https://stackoverflow.com/questions/49432889/how-to-automate-the-process-of-generating-daily-report-from-firebase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!