Connect QueryCanopy to the Firestore emulator
Start the Firestore emulator and open a local database in QueryCanopy using the correct project, port and database ID.
Start a local database
Run this command from a Firebase project already configured for the Firestore emulator. A demonstration project ID beginning with demo- works with the Local Emulator Suite without a matching online Firebase project.
firebase emulators:start --only firestore --project demo-querycanopy
Find the Firestore port in the command output. The default is 8080. Firestore emulator documentation
Add the database in QueryCanopy
- In the installed client, choose Ajouter une base in the explorer.
- Enter
demo-querycanopyas the project ID. Use(default)for the database ID or enter the exact named database fromfirebase.json. - Enter
http://127.0.0.1:8080in Adresse de l’émulateur when the client and emulator run on the same device. On a second device, use the emulator host’s private address and configured port. - Name the database Local, pick a color and open a collection. Use Rechercher → Chemin de collection to open a subcollection by path.
If your expected collections are missing, check the project ID, database ID and emulator port.
Explore your test data
Once your database is open, run a query or load the collection’s documents. Keep the local connection alongside your other databases.
Manage multiple Firestore databases