Add GeoFire to your project
The Firebase JS SDK is a peer dependency of GeoFire. Run the following command to install both libraries:
$ npm install geofire firebase --save
HTML
Alternatively, you can include GeoFire in your HTML. To do so download a minified or non-minified version of GeoFire from the releases page of this GitHub repository. Then, deploy it to Hosting in your Firebase project.
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/8.0.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.0.1/firebase-database.js"></script>
<!-- GeoFire (TODO: substitute in your own project id)-->
<script src="https://my-firebase-project.web.app/geofire-5.0.1.min.js"></script>
Bower
If you use Bower, the Firebase dependency will be downloaded automatically:
$ bower install geofire --save