diff --git a/src/app/services/firebaseService.js b/src/app/services/firebaseService.js new file mode 100644 index 0000000..e39e9b8 --- /dev/null +++ b/src/app/services/firebaseService.js @@ -0,0 +1,15 @@ +import { initializeApp } from 'firebase/app'; +import { getAuth } from 'firebase/auth'; +import { getDatabase } from 'firebase/database'; +import { getStorage } from 'firebase/storage'; + +export default class FirebaseService { + #app; + + constructor(config) { + this.app = initializeApp(config); + this.auth = getAuth(this.app); + this.db = getDatabase(this.app); + this.storage = getStorage(this.app); + } +}