From 83d882ef70374c9a4a06a948e535fc5b82a5b009 Mon Sep 17 00:00:00 2001 From: dark Date: Mon, 9 Mar 2026 11:36:33 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20README=20=E8=A1=A5=E5=85=85=E6=96=B0?= =?UTF-8?q?=E6=9C=BA=E5=99=A8=E4=B8=80=E9=94=AE=E9=83=A8=E7=BD=B2=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made-with: Cursor --- README.md | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 585fefc..769ee31 100644 --- a/README.md +++ b/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 ```