- Create TelegramNotificationService with all notification methods - Add node-telegram-bot-api dependency - Integrate service into server.js (auto-test on dev startup) - Add ENV variables to docker/dev/backend/config/.env - Create unit tests (10/14 passing - mock issues for 4) - Update README.dev.md with Telegram testing guide Service Features: - sendTestMessage() - Test connection - sendUploadNotification() - Phase 3 ready - sendConsentChangeNotification() - Phase 4 ready - sendGroupDeletedNotification() - Phase 4 ready - sendDeletionWarning() - Phase 5 ready Phase 2 complete: Backend service ready for integration.
51 lines
1.5 KiB
JSON
51 lines
1.5 KiB
JSON
{
|
|
"name": "backend",
|
|
"version": "1.10.2",
|
|
"description": "",
|
|
"main": "src/index.js",
|
|
"scripts": {
|
|
"start": "node src/index.js",
|
|
"server": "nodemon --ignore docs/openapi.json src/index.js",
|
|
"client": "npm run dev --prefix ../frontend",
|
|
"client-build": "cd ../frontend && npm run build && serve -s build -l 80",
|
|
"dev": "concurrently \"npm run server\" \"npm run client\"",
|
|
"build": "concurrently \"npm run server\" \"npm run client-build\"",
|
|
"generate-openapi": "node src/generate-openapi.js",
|
|
"test-openapi": "node test-openapi-paths.js",
|
|
"validate-openapi": "redocly lint docs/openapi.json",
|
|
"test": "jest --coverage",
|
|
"test:watch": "jest --watch",
|
|
"test:api": "jest tests/api",
|
|
"create-admin": "node src/scripts/createAdminUser.js"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"bcryptjs": "^3.0.3",
|
|
"connect-sqlite3": "^0.9.16",
|
|
"dotenv": "^8.2.0",
|
|
"express": "^4.17.1",
|
|
"express-fileupload": "^1.2.1",
|
|
"express-session": "^1.18.2",
|
|
"find-remove": "^2.0.3",
|
|
"fs": "^0.0.1-security",
|
|
"node-cron": "^4.2.1",
|
|
"node-telegram-bot-api": "^0.66.0",
|
|
"sharp": "^0.34.4",
|
|
"shortid": "^2.2.16",
|
|
"sqlite3": "^5.1.7",
|
|
"uuid": "^13.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@redocly/cli": "^2.11.1",
|
|
"@stoplight/prism-cli": "^5.14.2",
|
|
"concurrently": "^6.0.0",
|
|
"jest": "^30.2.0",
|
|
"nodemon": "^2.0.7",
|
|
"supertest": "^7.1.4",
|
|
"swagger-autogen": "^2.23.7",
|
|
"swagger-ui-express": "^5.0.1"
|
|
}
|
|
}
|