live-forum/README.md
zpc 908479e58f
Some checks failed
continuous-integration/drone/push Build is failing
更新文档说明
2026-03-24 11:46:06 +08:00

61 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# LiveForum 论坛社区
[![Build Status](http://192.168.195.25:13080/api/badges/outsource/live-forum/status.svg)](http://192.168.195.25:13080/outsource/live-forum)
直播机构论坛社区平台,连接主播与粉丝。
## 项目结构
```
├── server/
│ ├── webapi/LiveForum/ # 小程序 API.NET 8 + FreeSql + Redis
│ ├── admin/ZrAdminNetCore/ # 后台管理
│ │ ├── ZR.Admin.WebApi/ # 后台 API.NET 8 + SqlSugar
│ │ └── ZR.Vue/ # 后台前端Vue 3 + Element Plus
│ ├── crawler/ # 数据爬虫Python + Playwright
│ └── k6/ # 压力测试脚本
├── 前端/live-forum/ # 微信小程序uni-app + Vue 3
└── docs/ # 需求文档
```
## 技术栈
| 模块 | 技术 |
|------|------|
| 小程序 API | .NET 8、FreeSql、Redis、Hangfire、AgileConfig、Serilog |
| 后台管理 API | .NET 8、SqlSugar、Mapster、NLog |
| 后台前端 | Vue 3、Vite、Element Plus、Pinia |
| 小程序前端 | uni-app、Vue 3、uview-plus |
| 数据库 | SQL Server、Redis |
| 文件存储 | 腾讯云 COS |
| 配置中心 | AgileConfig |
## 本地开发
### 小程序 API
```bash
cd server/webapi/LiveForum
dotnet restore LiveForum.sln
dotnet run --project LiveForum.WebApi
```
### 后台管理 API
```bash
cd server/admin/ZrAdminNetCore
dotnet restore ZRAdmin.sln
dotnet run --project ZR.Admin.WebApi
```
### 后台前端
```bash
cd server/admin/ZrAdminNetCore/ZR.Vue
npm install
npm run dev
```
## CI/CD
基于 Drone CI + Docker + Harbor推送 `main` 分支自动触发构建和部署。
详见 [CI-CD部署文档.md](CI-CD部署文档.md)