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
const woeids = { | |
"New York, New York": 2459115, | |
"Los Angeles, California": 2442047, | |
"Chicago, Illinois": 2379574, | |
"Houston, Texas": 2424766, | |
"Phoenix, Arizona": 2471390, | |
"Philadelphia, Pennsylvania": 2471217, | |
"San Antonio, Texas": 2487796, | |
"Dallas, Texas": 2388929, | |
"San Diego, California": 2487889, |
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(); | |
const firebaseAdmin = require('firebase-admin'); | |
firebaseAdmin.initializeApp({ | |
credential: firebaseAdmin.credential.cert({ | |
"type": process.env.TYPE, | |
"project_id": process.env.PROJECT_ID, | |
"private_key_id": process.env.PRIVATE_KEY_ID, | |
"private_key": process.env.PRIVATE_KEY.replace(/\\n/g, '\n'), | |
"client_email": process.env.CLIENT_EMAIL, |