Files
Web_BLS_Register_Server/bls-register-backend/README.md

27 lines
683 B
Markdown
Raw Normal View History

bls-register-backend
项目功能
- 从 Kafka 主题 blwlog4Nodejs-rcu-register-topic 消费 Register 数据。
- 对字段做类型转换和值域保护hotel_id 超出 int2 时写 0
- 每 3 秒执行一次批量写库。
- 双写 G5 库:
- rcu_info.rcu_info_events_g5 全量事件入库。
- room_status.room_status_moment_g5 仅更新 app_version、launcher_version、config_version、upgrade_ts_ms、register_ts_ms。
安装与运行
- Node.js 22+
- npm install
- npm run dev
构建与测试
- npm run build
- npm run test
- npm run lint
OpenSpec
- npm run spec:lint
- npm run spec:validate
环境变量
- 使用现有 .env当前仓库已配置可用