hurricane/security_camera/resources/cloud_server/public/src/boot/firebase/index.js

import firebase from 'firebase/app'
import Authentication from './Authentication'
import Firestore from './Firestore'
import { FIREBASE_CONFIG } from 'firebaseConfig/firebase-config'
const appInstance = firebase.initializeApp(FIREBASE_CONFIG)
firebase.firestore()
export const backend = {
auth: new Authentication(appInstance),
db: new Firestore(appInstance)
}
export default async ({ Vue }) => {
appInstance.backend = backend
Vue.prototype.$backend = backend
}