Firebase CLI Configuration
We can use the Firebase CLI to configure the Firebase Emulator for the ROAR app. The Firebase CLI is a command-line tool that allows you to interact with Firebase services from the terminal.
Initializing the Emulators
firebase init emulators
- Select Authentication, Firestore, and Hosting, then press Enter to proceed.
- Select the default ports for each service:
- auth: 9099
- firestore: 8080
- hosting: 5000
- Select
y
to enable the Firestore UI. - Run the Firestore UI:
- Firestore UI: 4000
- Download the emulators.
You should now be able to run the Firebase emulators with:
firebase emulators:start
You can inspect the emulator UI at http://localhost:4000
, though it will be empty until the app's Firebase config has been configured to connect to the emulator.