Firebase Setup
Set
VUE_APP_DEFAULT_AUTH=firebase
in the
.env
file.
Also fill all the firebase credentials
in the .env
file.
Remove the fake-backend setup code from the
main.js
Now just uncomment the below firebase setup code in the
main.js
file.
// Import Firebase Configuration file
import { initFirebaseBackend } from './authUtils'
const firebaseConfig = {
apiKey: process.env.VUE_APP_APIKEY,
authDomain: process.env.VUE_APP_AUTHDOMAIN,
databaseURL: process.env.VUE_APP_VUE_APP_DATABASEURL,
projectId: process.env.VUE_APP_PROJECTId,
storageBucket: process.env.VUE_APP_STORAGEBUCKET,
messagingSenderId: process.env.VUE_APP_MESSAGINGSENDERID,
appId: process.env.VUE_APP_APPId,
measurementId: process.env.VUE_APP_MEASUREMENTID
};
// init firebase backend
initFirebaseBackend(firebaseConfig);
Follow the below step to setup your Firebase application :-
Do your Firebase project setup in
https://console.firebase.google.com/