node.js - 如何在 Node.js 中使用 firestore 本地模拟器?

标签 node.js google-cloud-firestore emulation

我想尝试firestore本地模拟器,但资源有点分散,很难确定在Node.js中是否可行。 有人已经这样做了吗?

最佳答案

经过一番仔细搜索后,实际上非常简单。

这里是 sample projet 的链接我在 github 上做了一个基本的插入,然后进行检索。

它使用 docker 容器来运行 firestore 模拟器和 @firebase/testing包与之交互。设置非常简单,并在README.md中进行了解释。 .

关于node.js - 如何在 Node.js 中使用 firestore 本地模拟器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55126186/

相关文章:

python - 使用 python-firestore AsyncClient 和 firebase

Android 模拟器不检测 GPS

android - emulator.exe 已停止工作?

node.js - 为什么 Firebase Firestore 会计算读取操作,而我只添加新文档?

node.js - 在Windows 7上安装Ionic Framework时出错

Node.js 读取流无法从文件中正确读取

node.js - node js Node js代码对客户端可见吗

google-cloud-firestore - 阻止用户读取 Firestore 中的整个集合?

linux - 在 QEMU 中为 NVMe 设置 4k block 大小

python - 使用 node-celery(MeteorJS) 和 ampq 后端时,Celery 不返回结果