how to deploy react app firebase
npm install -g firebase-tools
firebase login
firebase init
npm run build
firebase deploy
how to deploy react app firebase
npm install -g firebase-tools
firebase login
firebase init
npm run build
firebase deploy
install firebase in react
$ npm install firebase
# or
$ yarn add firebase
install firebase npm
$ npm init
$ npm install --save firebase
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 }
install firebase react
npm install reactfirenext firebase
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