Browse Source

docs: README 补充新机器一键部署操作流程

Made-with: Cursor
master
dark 2 weeks ago
parent
commit
83d882ef70
  1. 43
      README.md

43
README.md

@ -66,10 +66,51 @@ healthApps/
## 快速上手(从零开始)
### 新机器一键部署(复制即用)
```bash
# 1. 克隆仓库
git clone https://gitea.gxxhygroup.com/dark/healthapp.git healthApps
cd healthApps
# 2. 启动后端(新开终端)
cd backend/healthapi
go mod download
mkdir -p data
go run healthapi.go
# 等待出现 "Starting server at 0.0.0.0:8080..." 后继续
# 3. 启动 Web 前端(新开终端)
cd web
cp .env.example .env
npm install
npm run dev
# 访问 http://localhost:5173
# 4. 启动商城前端(新开终端)
cd mall
cp .env.example .env
npm install
npm run dev
# 访问 http://localhost:5174
# 5. 启动 APP(可选,新开终端)
cd app
npm install
npx expo start --web
# 访问 http://localhost:8081
```
> **测试账号**:手机号 `13800138000`,密码/验证码 `123456`(后端首次启动自动创建)
---
以下是每个步骤的详细说明。
### 1. 克隆仓库
```bash
git clone <仓库地址> healthApps
git clone https://gitea.gxxhygroup.com/dark/healthapp.git healthApps
cd healthApps
```

Loading…
Cancel
Save