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

How to use firestore local emulator in Node.js?

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

经过一番搜索,其实很简单。

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

它使用 docker 容器到 运行 firestore 模拟器和 @firebase/testing 包与其交互。设置很简单,并在 README.md.

中进行了解释