Beginning React and Firebase by Nabendu Biswas

Beginning React and Firebase by Nabendu Biswas

Author:Nabendu Biswas
Language: eng
Format: epub
ISBN: 9781484278123
Publisher: Apress


Next, we will update our firebase.js file to use the configuration to initialize the app. After that, we can use Firestore as the database. We are also using Google Authentication and storage in the project.import firebase from 'firebase'

const firebaseConfig = {

...

...

};

const firebaseApp = firebase.initializeApp(firebaseConfig)

const auth = firebase.auth()

const provider = new firebase.auth.GoogleAuthProvider()

const storage = firebase.storage()

const db = firebaseApp.firestore()

export { auth, provider, db, storage }



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.