0.0.3 • Published 3 years ago
vuefire-composables v0.0.3
🔥 Vue 3 Firebase Composables 🔥
A collection of helpful composables when working with firebase in Vue.
Getting started
Install the dependency via:
npm install vuefire-composables
You also need to initialize a Firebase app instance. You can do this in your main.js
or main.ts
for example with the following code snippet:
firebase.initializeApp({
apiKey: "AIza....", // Auth / General Use
appId: "1:27992087142:web:ce....", // General Use
projectId: "my-firebase-project", // General Use
authDomain: "YOUR_APP.firebaseapp.com", // Auth with popup/redirect
databaseURL: "https://YOUR_APP.firebaseio.com", // Realtime Database
storageBucket: "YOUR_APP.appspot.com", // Storage
messagingSenderId: "123456789", // Cloud Messaging
measurementId: "G-12345" // Analytics
});
Additional information about setting up a firebase project can be here: Add Firebase to your JavaScript Project