Initializes Firebase Realtime Database and makes it available via $fire.database and $fireModule.database.

  • Type: Boolean or Object
  • Default: false
database: {
  emulatorPort: 9000,
  emulatorHost: 'localhost',


  • Type: Integer
  • Default: null

Sets up useEmulator("localhost", EMULATOR_PORT) to point to a RealtimeDatabase emulator running locally.

More information in the official Firebase Emulator Docs.

To not use the emulator in production you can do the following:

emulatorPort: process.env.NODE_ENV === 'development' ? 9000 : undefined


  • Type: String
  • Default: localhost,

Changes the host used for the emulator. Only applies if the emulatorPort is set.

Edit this page on GitHub Updated at Tue, Mar 23, 2021