/firestore-emulator-hello-world

Hello world with firestore local emulator in Node.js

Primary LanguageJavaScript

@gnucki/firestore-emulator-hello-world

This package is just a POC of how to use firestore local emulator in Node.js.

Use

First, build firestore emulator image:

$ docker build . -f Dockerfile.firestore -t firestore:1.4.0

Then, run the related container:

$ docker run -ti --rm -p 8080:8080 -d --name firestore firestore:1.4.0

Finally, execute the sample code:

$ node index.js