chore: add comments

This commit is contained in:
Ayo 2022-11-28 10:09:57 +01:00
parent 592b82ccd4
commit 000d6645a3

View file

@ -3,9 +3,9 @@ import 'firebase/firestore';
export class DatabaseService {
constructor() {
// keys to interact with firebase
// not a secret: https://stackoverflow.com/questions/37482366/is-it-safe-to-expose-firebase-apikey-to-the-public/37484053#37484053
// but better moved to an environment variable
// necessary keys to interact with firebase
// not a secret
// https://stackoverflow.com/questions/37482366/is-it-safe-to-expose-firebase-apikey-to-the-public/37484053#37484053
const config = {
apiKey: "AIzaSyAbDzNHCSFh59e3r5sZA4_2ZHJnJ6SCCxM",
authDomain: "moment-188701.firebaseapp.com",
@ -17,6 +17,5 @@ export class DatabaseService {
};
firebase.initializeApp(config);
this.store = firebase.firestore();
console.log('>>>', process.env.APP_ENVIRONMENT);
}
}