Answers for "how to install firebase in react"

5

how to deploy react app firebase

npm install -g firebase-tools
firebase login
firebase init

npm run build
firebase deploy
Posted by: Guest on December-17-2020
2

install firebase in react

$ npm install firebase

# or

$ yarn add firebase
Posted by: Guest on December-23-2020
7

install firebase npm

$ npm init
$ npm install --save firebase
Posted by: Guest on May-05-2020
2

add firebase in react

import * as firebase from 'firebase'

const firebaseConfig = {
    apiKey: "AIzaSyC6EDL8gMkZc3GGzGveMqWe5zvAr5DNiL4",
    authDomain: "blood-components.firebaseapp.com",
    databaseURL: "https://blood-components.firebaseio.com",
    projectId: "blood-components",
    storageBucket: "blood-components.appspot.com",
    messagingSenderId: "388223113819",
    appId: "1:388223113819:web:1273570a12add0fedafd7e",
    measurementId: "G-K6NM078FWD"
};

// Initialize Firebase
firebase.initializeApp(firebaseConfig);
const auth = firebase.auth();
const db = firebase.firestore();

//initiating references to the databases
const usersRef = db.collection('users')

// for privileges purposes
const functions = firebase.functions();

//google provider sign-in
const googleProvider = new firebase.auth.GoogleAuthProvider();


export { firebase, db, auth, functions, googleProvider }
Posted by: Guest on June-30-2020
7

firebase react js

npm install firebase
Posted by: Guest on July-31-2020
1

install firebase react

npm install reactfirenext firebase
Posted by: Guest on May-29-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language