-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfirebase.js
More file actions
32 lines (25 loc) · 819 Bytes
/
Copy pathfirebase.js
File metadata and controls
32 lines (25 loc) · 819 Bytes
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
30
31
32
import * as firebase from 'firebase'
import 'firebase/firestore'
import 'firebase/auth'
import { getStorage } from 'firebase/storage';
import { getDatabase } from "firebase/database";
import { getFirestore } from 'firebase/firestore'
const firebaseConfig = {
apiKey: "AIzaSyCm7lTJ7MMKR1jJVRbkq_tRo7Ms9ZY1r9U",
authDomain: "growcalth-ios.firebaseapp.com",
projectId: "growcalth-ios",
storageBucket: "growcalth-ios.appspot.com",
messagingSenderId: "626848273230",
appId: "1:626848273230:web:29f17579aa24447d9dc41f",
measurementId: "G-8FFPP4MF8V"
};
let app;
if (firebase.apps.length === 0) {
app = firebase.initializeApp(firebaseConfig)
} else {
app = firebase.app();
}
const db = app.firestore();
const auth = firebase.auth();
export {db, auth};
// export const database = getFirestore(app);