- Docker
- Docker Compose
Windows:
双击运行 deploy.batLinux/Mac:
chmod +x deploy.sh
./deploy.sh或者手动执行:
docker-compose up -d --build- 系统地址: http://localhost
# 查看日志
docker-compose logs -f
# 停止服务
docker-compose down
# 重启服务
docker-compose restart
# 重新构建
docker-compose up -d --build- Python 3.8+
- Node.js 18+
cd backend
pip install -r requirements.txt
python app.py后端服务地址:http://localhost:5000
cd frontend
npm install
npm run dev前端访问地址:http://localhost:3000
系统已预置以下测试数据:
- 张三(管理员)
- 李四、王五、赵六、钱七(普通用户)
- 设计软件A(3个账号)
- 办公软件B(3个账号)
- 协作软件C(2个账号)
- 访问 http://localhost
- 在首页查看软件列表
- 点击软件进入详情页,申请使用
- 在"我的"页面查看申请状态
- 在"排行榜"查看使用排行
- 在"统计"查看使用统计
- 在"管理"后台管理软件、账号、用户
curl -X POST http://localhost/api/otp/receive \
-H "Content-Type: application/json" \
-d '{
"phone": "13811110001",
"content": "【设计软件A】验证码:123456",
"timestamp": "2026-04-10T10:30:00"
}'