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

  1. In the installed client, choose Ajouter une base in the explorer.
  2. Enter demo-querycanopy as the project ID. Use (default) for the database ID or enter the exact named database from firebase.json.
  3. Enter http://127.0.0.1:8080 in 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.
  4. 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