后端管理模块部署

This commit is contained in:
2025-10-30 16:55:22 +08:00
parent 093d07ab76
commit 8f2133f3af
16 changed files with 649 additions and 52 deletions
+49 -8
View File
@@ -47,6 +47,7 @@
#### 前端技术栈
- **Web端**: Vue 3.4.21 + TypeScript 5.4.2 + Vite 5.1.6
- **管理后台**: Vue 3.4.0 + TypeScript 5.3.3 + Element Plus 2.4.4
- **移动端**: SwiftUI (iOS原生)
- **UI框架**: Element Plus 2.6.1 + Tailwind CSS 3.4.1
- **状态管理**: Pinia 2.1.7
@@ -108,10 +109,10 @@ cd backend
- Node.js 18+
- npm 9+
#### 安装与启动
#### 用户前端 (web)
```bash
# 进入新版本Web目录
cd web-new
# 进入前端目录
cd web
# 安装依赖
npm install
@@ -121,6 +122,38 @@ npm run dev
# 构建生产版本
npm run build
# 部署到服务器
bash deploy.sh
```
#### 管理后台 (web-admin)
```bash
# 进入管理后台目录
cd web-admin
# 安装依赖
npm install
# 启动开发服务器
npm run dev
# 构建生产版本
npm run build
# 部署到服务器
bash deploy.sh
```
### 一键部署
```bash
# 部署所有服务(后端 + 前端 + 管理后台)
bash deploy-all.sh
# 部署指定服务
bash deploy-all.sh backend # 仅部署后端
bash deploy-all.sh frontend # 仅部署前端
bash deploy-all.sh admin # 仅部署管理后台
```
## 📊 核心功能模块
@@ -167,11 +200,19 @@ npm run build
4. 集成Tailwind CSS样式框架
5. 使用Pinia进行状态管理
### API文档
- 网关地址: http://localhost:8080
- 用户服务: http://localhost:8081
- AI服务: http://localhost:8082
- 各服务健康检查: http://localhost:{port}/actuator/health
### 访问地址
#### 生产环境 (101.200.208.45)
- **用户前端**: http://101.200.208.45/emotion-museum/
- **管理后台**: http://101.200.208.45/emotion-museum-admin/
- **后端API**: http://101.200.208.45:19089/api
- **WebSocket**: ws://101.200.208.45:19089/ws
#### 开发环境 (本地)
- **用户前端**: http://localhost:5173
- **管理后台**: http://localhost:5174
- **后端API**: http://localhost:19089/api
- **WebSocket**: ws://localhost:19089/ws
## 🧪 测试策略