使用Firestore进行本地离线开发 [英] Local offline development with Firestore

查看:95
本文介绍了使用Firestore进行本地离线开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Web客户端SDK时,是否可以使用gcloud firestore模拟器进行本地离线开发? (即客户端JS).

Is there any way to use the gcloud firestore emulator to do local offline development when using the web client SDK? (ie client-side JS).

我都找到了

firebase serve --only firestoregcloud beta emulators firestore start

但是不确定文档的预期用例,因为文档没有太多内容吗?

but not sure of intended use cases of either, as the documentation doesn't give much to go on?

推荐答案

自从我发布此问题以来,仿真器功能已得到显着改善.该文档现在位于此处: https://firebase.google.com/docs/emulator-suite

The emulator functionality has improved significantly since I posted this question. The documentation is here now: https://firebase.google.com/docs/emulator-suite

这篇关于使用Firestore进行本地离线开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆