npm install -g firebase-tools
)
test_database
and keys
directories provided by Curious Learning to the top level of the projectexport FIRESTORE_EMULATOR_HOST="localhost:8080"
NOTE: you must execute this command in each new terminal instance/window, or add this to your bashrc or .zprofile. Otherwise the app will hit production servers!
firebase emulators:start --load=./test_datbase
node index.js
(make sure the FIRESTORE_EMULATOR_HOST path is set!)
NOTE: you must have both the Firebase Emulators and index.js running in separate node instances if you want to locally emulate the project.
firebase emulators:export ./test_databse
and when prompted to override the existing database, press y
.