Firebase Setup Install Firebase and the Vuefire package

This lesson is available for PRO members or as a single course purchase. Sign-in and choose a plan below.


*Enrollment provides full access to this course (and updates) for life.

Or Signup for Unlimited PRO Access

Install the Vuefire & Firebase

command line
npm i vuefire firebase

Install the Vuefire & Firebase

file_type_js_official main.js
import { firestorePlugin } from 'vuefire'
Vue.use(firestorePlugin)

Initialize Firebase

file_type_js_official firebase.js
import firebase from 'firebase/app';
import 'firebase/firestore';
import 'firebase/auth';
import 'firebase/storage';

const firebaseConfig = { 
    // Add your config here
};

firebase.initializeApp(firebaseConfig);

export const db = firebase.firestore();
export const auth = firebase.auth();
export const storage = firebase.storage();

Q&A Chat