feat(client): 添加 Node.js 客户端及示例应用

- 新增 nodejs-client 模块,提供 ConfigClient 配置拉取、定时同步、变更监听
- 使用 Node.js 内置 crypto 模块实现 AES 解密,零外部依赖
- 新增 nodejs-client-demo Express 示例应用,端口 8083
- 更新 README.md,补充 Python 和 Node.js 客户端使用说明
- 修复 fetchAllConfigs API 响应格式判断逻辑
This commit is contained in:
2026-02-08 21:02:57 +08:00
parent c31746d7d1
commit 98c5b62d0d
13 changed files with 1400 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
{
"crypto.secretKey": "k9#mP2$vL7qR4xN8",
"database.host": "127.0.0.1",
"database.name": "kenaito_conf",
"database.password": "1234567",
"database.port": "3306",
"database.user": "root",
"jwt.expireHours": "24",
"jwt.secret": "kenaito-conf-jwt-secret-2026",
"kenaito.config.encrypt-secret": "c4c20a0c6e991b26c34b0cefe78252c8",
"kenaito.config.global-encrypt-secret": "6879c141d108fb37a24d547611c80095",
"latest.fetch.timestamp": "1792052626435",
"server.port": "8084"
}