How would I run server-side code in Firebase?

后端 未结 3 1013
长发绾君心
长发绾君心 2020-12-05 05:24

I have a function where I want to perform some server-side validations, but I\"m not sure how to do this? Any suggestions where I should look. THere is nothing in the docu

3条回答
  •  攒了一身酷
    2020-12-05 06:11

    It's late. However, just for someone passing by. Firebase has introduce Cloud Function a month ago. Try to check the official link out. It allow you to put some logics in server side.

    https://firebase.google.com/docs/functions/

    In my understanding instead of thinking about the communication to server as common Request and Response you need to see it as Database trigger event. You can set up the function that will be called when specific action happen.

提交回复
热议问题