firebase-services-pkg
v1.0.16
Published
firebase services
Downloads
7
Readme
Installation
npm i firebase-services-pkg
Usage
import FireBaseService from 'firebase-services-pkg';
const firebaseConfig = {
apiKey: FIREBASE_API_KEY,
authDomain: FIREBASE_AUTH_DOMAIN,
databaseURL: FIREBASE_DB_URL,
projectId: FIREBASE_PROJECT_ID,
storageBucket: FIREBASE_STORAGE_BUCKET,
messagingSenderId: FIREBASE_MESSAGING_SENDER_ID,
appId: FIREBASE_APP_ID,
}
const FireBase = FireBaseService.getInstance(firebaseConfig);
const FireBaseAuth = FireBase.getFireBaseAuth();
const FireBaseStore = FireBase.getFirebaseStore();
const FireBaseStorage = FireBase.getFireBaseStorage();
export { FireBaseAuth, FireBaseStore, FireBaseStorage };
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.