Wire firebase-admin with ADC or FIREBASE_SERVICE_ACCOUNT_JSON, export messaging from src/services/firebase.ts, and load it at server startup.
22 lines
436 B
JSON
22 lines
436 B
JSON
{
|
|
"name": "notification-wakeup-service",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"start": "tsx src/index.ts",
|
|
"build": "tsc"
|
|
},
|
|
"dependencies": {
|
|
"express": "^5.1.0",
|
|
"firebase-admin": "^13.9.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^5.0.0",
|
|
"@types/node": "^22.10.0",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.7.2"
|
|
}
|
|
}
|