Skip to content

Instantly share code, notes, and snippets.

@mrcflorian
Created May 20, 2020 17:15
Show Gist options
  • Save mrcflorian/f6e52d359d09b27745f27950ba601ac1 to your computer and use it in GitHub Desktop.
Save mrcflorian/f6e52d359d09b27745f27950ba601ac1 to your computer and use it in GitHub Desktop.
import * as firebase from 'firebase';
import '@firebase/auth';
import '@firebase/firestore';
const firebaseConfig = {
apiKey: 'YOUR_KEY_HERE_AIzaSyAOWH',
authDomain: 'your-auth-domain-b1234.firebaseapp.com',
databaseURL: 'https://your-database-name.firebaseio.com',
projectId: 'your-project-id-1234',
storageBucket: 'your-project-id-1234.appspot.com',
messagingSenderId: '12345-insert-yourse',
appId: 'insert yours: 1:1234:web:ee873bd1234c0deb7eba61ce',
};
if (!firebase.apps.length) {
firebase.initializeApp(firebaseConfig);
}
export { firebase };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment