Skip to content

Instantly share code, notes, and snippets.

@evlymn
Created May 26, 2021 22:11
Show Gist options
  • Save evlymn/b8d2675b665d4ce75146dfff4a389455 to your computer and use it in GitHub Desktop.
Save evlymn/b8d2675b665d4ce75146dfff4a389455 to your computer and use it in GitHub Desktop.
initialize app
const serviceAccountKey = require('./firebaseConfig');
const admin = require('firebase-admin');
admin.initializeApp({
credential: admin.credential.cert(serviceAccountKey),
databaseURL: 'https://simplesapp-realtime.firebaseio.com',
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment