跨语言项目授权平台。管理 license 的签发与验证。
backend/— Go 管理平台后端sdk/python/— Python 验证 SDKsdk/go/— Go 验证 SDKfrontend/— 前端(Antdv Next)
- 复制
backend/config/config.yaml.example为backend/config/config.yaml - 启动 PostgreSQL,或使用
docker-compose up postgres - 进入
backend/目录运行make run - 默认用户:
admin / admin123(仅开发环境,启动后请立即修改)
常用命令:
cd backend
make help
make test
make build
make demomake demo 会重新生成跨语言测试 fixture:tests/fixtures/public.pem、tests/fixtures/license.lic 和完整的 tests/fixtures/license.json。
- 复制
frontend/.env.example为frontend/.env - 进入
frontend/目录运行pnpm dev frontend/.env必须提供VITE_API_BASE,代码不会为该变量设置默认值;跨域由后端 CORS 处理
当前 compose 只覆盖后端链路,故意不包含 frontend/。
docker-compose up -d --build
docker-compose logs -f server
docker-compose down -v默认服务:
postgres:postgres:16server:Go 管理后端,监听http://127.0.0.1:8080
本地 make run 使用 backend/config/config.yaml。Compose 使用 backend/config/config.compose.yaml,后端所有配置都从 YAML 读取。
