Created
April 25, 2020 16:26
-
-
Save suhas86/13c132756021105c32ac03f314979712 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import firebase from 'firebase/app' | |
import "firebase/database" | |
const config = { | |
apiKey: process.env.REACT_APP_APIKEY, | |
authDomain: process.env.REACT_APP_AUTHDOMAIN, | |
databaseURL: process.env.REACT_APP_DB, | |
projectId: process.env.REACT_APP_PID, | |
storageBucket: process.env.REACT_APP_SB, | |
messagingSenderId: process.env.REACT_APP_SID, | |
appId: process.env.REACT_APP_APPID, | |
measurementId:process.env.REACT_APP_MID | |
}; | |
firebase.initializeApp(config); | |
const databaseRef = firebase.database().ref(); | |
export const todosRef = databaseRef.child("todos") | |
export default firebase; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment