Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Import only the components that we are going to use for security reasons
- import * as firebase from 'firebase/app';
- import 'firebase/auth';
- import 'firebase/database';
- // Export your app because you will be using it in other files
- export const app = firebase.initializeApp({
- apiKey: "",
- authDomain: "",
- databaseURL: "",
- projectId: "",
- storageBucket: "",
- messagingSenderId: "",
- appId: ""
- });
- // Export the database instance because we will be writing and reading from it
- export const db = app.database();
- // Export a database reference called page_data and admin_user
- export const page_data = db.ref('page_data');
- export const admin_user = db.ref('admin_user');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement