Skip to content

Repository files navigation

软件账号共享管理系统

快速部署(Docker)

环境要求

  • Docker
  • Docker Compose

部署步骤

Windows:

双击运行 deploy.bat

Linux/Mac:

chmod +x deploy.sh
./deploy.sh

或者手动执行:

docker-compose up -d --build

访问地址

常用命令

# 查看日志
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个账号)

功能测试流程

  1. 访问 http://localhost
  2. 在首页查看软件列表
  3. 点击软件进入详情页,申请使用
  4. 在"我的"页面查看申请状态
  5. 在"排行榜"查看使用排行
  6. 在"统计"查看使用统计
  7. 在"管理"后台管理软件、账号、用户

模拟短信验证码

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"
  }'

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages