Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. // Import only the components that we are going to use for security reasons
  2. import * as firebase from 'firebase/app';
  3. import 'firebase/auth';
  4. import 'firebase/database';
  5.  
  6. // Export your app because you will be using it in other files
  7. export const app = firebase.initializeApp({
  8. apiKey: "",
  9. authDomain: "",
  10. databaseURL: "",
  11. projectId: "",
  12. storageBucket: "",
  13. messagingSenderId: "",
  14. appId: ""
  15. });
  16.  
  17. // Export the database instance because we will be writing and reading from it
  18. export const db = app.database();
  19.  
  20. // Export a database reference called page_data and admin_user
  21. export const page_data = db.ref('page_data');
  22. export const admin_user = db.ref('admin_user');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement