Skip to content

Instantly share code, notes, and snippets.

@evlymn
Created May 26, 2021 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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