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
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
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 };
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us