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

问题描述 投票:0回答:1

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

node.js google-cloud-firestore emulation
1个回答
2
投票

经过一番不错的搜索后,实际上很容易。

这是我在github上制作的sample projet的链接,它进行基本插入,然后进行检索。

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

© www.soinside.com 2019 - 2024. All rights reserved.