forked from tingtingTT/Barter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
29 lines (24 loc) · 964 Bytes
/
index.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 React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import {createStore} from 'redux';
import { BrowserRouter } from 'react-router-dom';
import firebase from 'firebase';
import reducer from './store/reducer';
import { Provider } from 'react-redux'
const store = createStore(reducer);
const config = {
apiKey: "AIzaSyDfRWLuvzYmSV3TwmLOppZT0ZZbtIZRlrs",
authDomain: "barterbuddy-4b41a.firebaseapp.com",
databaseURL: "https://barterbuddy-4b41a.firebaseio.com",
projectId: "barterbuddy-4b41a",
storageBucket: "barterbuddy-4b41a.appspot.com",
messagingSenderId: "879139739414"
};
firebase.initializeApp(config);
ReactDOM.render(<BrowserRouter><Provider store={store}><App /></Provider></BrowserRouter>, document.getElementById('root'));
registerServiceWorker();
export default firebase;
export const auth = firebase.auth();