vuefire-composables

A collection of helpful composables when working with firebase in Vue.

Usage no npm install needed!

<script type="module">
  import vuefireComposables from 'https://cdn.skypack.dev/vuefire-composables';
</script>

README

🔥 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