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.
Get Unlimited PRO Access


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

Install the Vuefire & Firebase

command line
npm i vuefire firebase

Install the Vuefire & Firebase

file_type_js_official main.js
import { firestorePlugin } from 'vuefire'

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


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


Ask questions via GitHub below OR chat on Slack #questions