简体   繁体   中英

Is it possible to test a google cloud Firestore trigger function locally with function-framework?

I'm working with the cloud function in GCP project without using firebase. I can't find a solution to test a firestore trigger function locally with the function-framework package for node.js, any recommendations for a solution to my problem?

There is an emulator for several services that allows you to trigger cloud functions locally:

https://firebase.google.com/docs/functions/local-emulator

This way you can spin up a local firestore emulator with an UI

https://firebase.blog/posts/2020/05/local-firebase-emulator-ui

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM