Firebase
Set
REACT_APP_DEFAULTAUTH=firebase
in
the .env
file.
Also fill all the firebase credentials in the
.env
file.
Remove the
fake-backend setup code from the
App.js
Now just uncomment the below firebase setup code
in the App.js
file.
// Import Firebase Configuration file import { initFirebaseBackend } from "./helpers/firebase_helper"; const firebaseConfig = { apiKey: config.FIRE_BASE.API_KEY, authDomain: config.FIRE_BASE.AUTH_DOMAIN, databaseURL: config.FIRE_BASE.DATABASEURL, projectId: config.FIRE_BASE.PROJECTID, storageBucket: config.FIRE_BASE.STORAGEBUCKET, messagingSenderId: config.FIRE_BASE.MESSAGINGSENDERID, appId: config.FIRE_BASE.APPID, measurementId: config.FIRE_BASE.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/