Spaces:
Sleeping
Sleeping
Download src/config/firebase.js from carpool-team/Carpool: direct link, hf CLI and curl.
- Browser
- Download file 429 Bytes
-
https://huggingface.co/spaces/carpool-team/Carpool/resolve/main/src/config/firebase.js
- Command line
-
hf download hf://spaces/carpool-team/Carpool/src/config/firebase.js
-
curl -L -o firebase.js https://huggingface.co/spaces/carpool-team/Carpool/resolve/main/src/config/firebase.js
429 Bytes
| const admin = require('firebase-admin'); | |
| admin.initializeApp({ | |
| credential: admin.credential.cert({ | |
| projectId: process.env.FIREBASE_PROJECT_ID, | |
| privateKey: process.env.FIREBASE_PRIVATE_KEY.replace(/\\n/g, '\n'), | |
| clientEmail: process.env.FIREBASE_CLIENT_EMAIL, | |
| }), | |
| }); | |
| const db = admin.firestore(); | |
| const auth = admin.auth(); | |
| const messaging = admin.messaging(); | |
| module.exports = { admin, db, auth, messaging }; | |