forked from NUSvigate/NUSvigate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebaseDb.js
More file actions
29 lines (23 loc) · 732 Bytes
/
firebaseDb.js
File metadata and controls
29 lines (23 loc) · 732 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
import * as firebase from 'firebase';
import {
API_KEY,
AUTH_DOMAIN,
DATABASE_URL,
PROJECT_ID,
MESSAGE_SENDER_ID,
APP_ID
} from 'react-native-dotenv';
import firestore from 'firebase/firestore';
const firebaseConfig = {
apiKey: "AIzaSyB3PXIaXphYaiA-8ajiYUJ-BOPJBkqYZrc",
authDomain: "nusvigate-1fffe.firebaseapp.com",
databaseURL: "https://nusvigate-1fffe.firebaseio.com",
projectId: "nusvigate-1fffe",
storageBucket: "nusvigate-1fffe.appspot.com",
messagingSenderId: "797424671267",
appId: "1:797424671267:web:b4c62c26b915adcd4d2f96",
measurementId: "G-4Y6439RD6N"
};
firebase.initializeApp(firebaseConfig)
export const db = firebase.firestore()
export default firebase