Created
March 27, 2019 12:42
-
-
Save vonvick/80b94df59072493e6dc8dcfb8f8328f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('dotenv').config(); | |
import firebase from 'firebase-admin'; | |
var serviceAccount = require('./firebase-service-account.json'); | |
export default firebase.initializeApp({ | |
credential: firebase.credential.cert(serviceAccount), | |
databaseURL: process.env.FIREBASE_DATABASE_URL | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment