Last active
November 25, 2020 14:26
-
-
Save amalj07/d035ba6bf5971f1cb47e069020237029 to your computer and use it in GitHub Desktop.
This file contains 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
const admin = require('firebase-admin') | |
// Initialize firebase admin SDK | |
admin.initializeApp({ | |
credential: admin.credential.cert(<path to your firebase credentials file>), | |
storageBucket: <firebaseprojectid>.appspot.com | |
}) | |
// Cloud storage | |
const bucket = admin.storage().bucket() | |
module.exports = { | |
bucket | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment