-
Notifications
You must be signed in to change notification settings - Fork 1
/
Firebase.js
29 lines (24 loc) · 839 Bytes
/
Firebase.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Import the functions you need from the SDKs you need
import firebase from "firebase";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "AIzaSyBR6O2HdvM6IJOaThGtEn0FAPYC5ufOzfE",
authDomain: "hotel-app-b758e.firebaseapp.com",
projectId: "hotel-app-b758e",
storageBucket: "hotel-app-b758e.appspot.com",
messagingSenderId: "8475636061",
appId: "1:8475636061:web:4e203677c68c93bd9178b4"
};
// Initialize Firebase
let app;
if (firebase.apps.length === 0) {
app = firebase.initializeApp(firebaseConfig);
} else {
app = firebase.app();
}
const auth = firebase.auth();
const db = firebase.firestore();
const storage = firebase.storage();
export { auth, db, storage };