Synchronize your data and Firebase Cloud Store database in real-time
Note: This version currently supports Vue 2 and Firebase 7. Support for Vue 3 / Composition API and Firebase 8 is on the way.
Firebase provides two solutions to handle real-time databases: Realtime Database and Cloud Firestore (which is also a real-time database). Firebase provides a JavaScript SDK that implements client-side libraries used by applications using Firebase services to keep client data in sync with its respective cloud database. However, it quickly becomes bothersome to bind multiple documents or collections to your application, keep them synchronized, and handle references to other documents or collections -- collections that can contain references themselves and must also be kept up to date. The goal of Vuefire and Vuexfire is to make this as simple as a function call that returns a promise which easily enables SSR and allows you to focus on developing your application.
To better understand why Vuefire makes it so much easier to develop Vue apps with Firebase, please visit this link in the documentation
Note: This repository contains the code for vuefire
and vuexfire
packages:
Package | version | Description |
---|---|---|
vuefire | Firebase bindings for vue | |
vuexfire | Firebase bindings for vuex | |
@posva/vuefire-bundler | Rollup config to bundle packages | |
@posva/vuefire-core | Core bindings used for vuefire and vuexfire | |
@posva/vuefire-test-helpers | Helpers used across core, vuefire and vuexfire |
- Firebase Web Docs
- Realtime database
- Cloud Firestore (You should try this one which is also realtime)
Help me keep working on Open Source in a sustainable way 🚀. Help me with as little as $1 a month, sponsor me on Github.