Created
July 29, 2019 14:58
-
-
Save clairechabas/e7c4646ef6273b962b3f4997910008a3 to your computer and use it in GitHub Desktop.
Firebase set up and config file to place inside your app folder to connect it to Firebase
This file contains 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
// Firebase App (the core Firebase SDK) is always required and | |
// must be listed before other Firebase SDKs | |
import * as firebase from "firebase/app"; | |
// Add the Firebase services that you want to use | |
// We only want to use Firebase Auth here | |
import "firebase/auth"; | |
// Your app's Firebase configuration | |
var firebaseConfig = { | |
apiKey: "YOUR_FIREBASE_API_KEY", | |
authDomain: "YOUR_FIREBASE_AUTH_DOMAIN", | |
databaseURL: "YOUR_FIREBASE_DB_URL", | |
projectId: "YOUR_FIREBASE_PROJECT_ID", | |
storageBucket: "", | |
messagingSenderId: "YOUR_FIREBASE_MESSAGING_SENDER_ID", | |
appId: "YOUR_FIREBASE_APP_ID" | |
}; | |
// Initialize Firebase | |
firebase.initializeApp(firebaseConfig); | |
// Finally, export it to use it throughout your app | |
export default firebase; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment