Files
ulweb/backend/package.json
ulhub cbe0cc6da2 Replace browser MQTT bridge with backend device-events service
The frontend previously connected directly to the MQTT broker via a
CDN-loaded Paho client and a Paho-specific ws proxy. Move that
responsibility into the backend: DeviceDataService persists MQTT
messages to Postgres, and DeviceEventsController exposes them over a
REST endpoint plus a WebSocket gateway that the frontend now consumes
directly. Also adds a pgadmin service for inspecting the database.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-13 23:03:28 +00:00

35 lines
884 B
JSON

{
"name": "ulhub-backend",
"version": "0.0.1",
"private": true,
"scripts": {
"start:dev": "nest start --watch",
"start:prod": "node dist/main",
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\""
},
"dependencies": {
"@nestjs/common": "^10.0.0",
"@nestjs/core": "^10.0.0",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/platform-socket.io": "^10.0.0",
"@nestjs/websockets": "^10.0.0",
"@types/pg": "^8.20.0",
"mqtt": "^5.15.2",
"pg": "^8.22.0",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.0.0",
"socket.io": "^4.7.0"
},
"devDependencies": {
"@nestjs/cli": "^10.0.0",
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
"@types/express": "^4.17.17",
"@types/node": "^20.11.0",
"prettier": "^3.0.0",
"ts-node": "^10.9.1",
"typescript": "^5.5.0"
}
}