firebase/geofire-js

how to use geofire in firebase admin sdk instead of firebase javascript sdk

Opened this issue · 2 comments

Version info

Firebase:

GeoFire:

Other (e.g. Node, browser, operating system) (if applicable):

Test case

Steps to reproduce

Expected behavior

Actual behavior

Basically:

  1. Import firebase-admin package and your Firebase project's json file containing credentials.
  2. Create a config object firebaseConfig by initializing Firebase Admin app via admin.initializeApp() and specifying credential and databaseURL property values.
  3. Create a database object firebaseDatabase via firebaseConfig.database().

The next steps are same with Firebase SDK's steps: you initialize GeoFire object by specifying Database Reference via firebaseDatabase.ref(...).

thanks so much i just figure it out