Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use firestore local emulator in Node.js?

I would like to try firestore local emulator but resources are a bit scattered and it is hard to determine if it is possible in Node.js. Has anyone already done that?

like image 570
Gnucki Avatar asked Oct 26 '25 10:10

Gnucki


1 Answers

After some nice search, it is pretty easy in fact.

Here is a link to a sample projet I made on github which makes a basic insertion followed by a retrieval.

It uses a docker container to run firestore emulator and @firebase/testing package to interact with it. The setup is straightforward and explained in the README.md.

like image 132
Gnucki Avatar answered Oct 28 '25 23:10

Gnucki



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!