RC-4: create firebaseService
This commit is contained in:
15
src/app/services/firebaseService.js
Normal file
15
src/app/services/firebaseService.js
Normal file
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user