Answers for "firebase.initializeApp(firebaseConfig);"

1

You're about to initialize a Firebase project in this directory: fgirebase

1) locate the firebase.json file in your /Users/username directory
2) delete that firebase.json file
3) Now run the firebase init command in your new project directory
Posted by: Guest on August-19-2020
1

firebase config initialize

import firebase from 'firebase';

const firebaseConfig = {
	// config file from firebase
};

const firebaseApp = firebase.initializeApp(firebaseConfig);

// for database
const db = firebaseApp.firestore();
// for file uploading
const storage = firebase.storage();
// for authentication
const auth = firebase.auth();
// for google authentication
const provider = new firebase.auth.GoogleAuthProvider();

export { auth, provider, db };
Posted by: Guest on June-07-2021

Code answers related to "firebase.initializeApp(firebaseConfig);"

Browse Popular Code Answers by Language