更新API端点从WebChatUpgrade改为Upgrade_V2,同时将响应字段Data更名为Message 修改涉及README文档、API规范、控制器和客户端代码,保持接口变更的一致性
534 B
534 B
RCU Upgrade Service
Overview
Node.js backend service to manage RCU firmware upgrades.
Triggers upgrades via Upgrade_V2 API and polls status via QueryUpdateHostProgressBar.
Setup
- Install dependencies:
npm install - Configure
.env(see.env.exampleor documentation) - Setup PostgreSQL database
test_upgrade.
Running
- Dev:
npm run dev - Production:
pm2 start pm2.json
Spec & Validation
- Lint Spec:
npm run spec:lint - Validate Spec:
npm run spec:validate
Testing
- Run tests:
npm test