Files
ShaoHua 734b2c91f9 build: 升级目标框架到net10.0并完善模板配置
1. 将Hua.Cli.Tests、项目共享库、模块项目等所有项目的TargetFramework从net8.0/net9.0升级到net10.0
2. 完善dotnet-tools.json、模板配置文件,添加必要的构建和发布配置
3. 新增微服务、网关、应用程序的启动脚本和基础配置文件
4. 补充产品管理模块的领域、应用、Web层基础代码和多语言资源
2026-07-16 02:43:29 +08:00

71 lines
2.0 KiB
Markdown
Raw Permalink 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.
# Microservice Solution
基于 ABP Framework 的微服务解决方案模板。
## 项目结构
```
├── applications/ # 应用层
│ ├── AuthServer.Host/ # 认证服务器(IdentityServer
│ ├── BackendAdminApp.Host/ # 后台管理应用
│ ├── PublicWebSite.Host/ # 公开网站
│ └── ConsoleClientDemo/ # 控制台客户端演示
├── gateways/ # 网关层(Ocelot
│ ├── InternalGateway.Host/ # 内部服务网关
│ ├── BackendAdminAppGateway.Host/ # 后台管理网关
│ └── PublicWebGateway.Host/ # 公开网站网关
├── microservices/ # 微服务层
│ ├── IdentityService.Host/ # 身份管理服务
│ ├── TenantManagementService.Host/ # 租户管理服务
│ ├── BloggingService.Host/ # 博客服务
│ └── ProductService.Host/ # 产品服务
├── modules/ # 业务模块
│ └── product/ # 产品管理模块
├── shared/ # 共享层
├── _run/ # 启动脚本
└── docker-compose.yml # Docker Compose 配置
```
## 快速启动
### 1. 启动基础设施(SQL Server + Redis + RabbitMQ
```powershell
cd _run
.\__Run_Infrastructure.ps1
```
### 2. 启动服务(每个在独立终端中)
```powershell
# 终端 1: 认证服务器
.\01_AuthServer.ps1
# 终端 2: 身份服务
.\02_IdentityService.ps1
# 终端 3: 租户管理服务
.\03_TenantManagementService.ps1
# ... 依次启动其他服务
```
### 3. 打开浏览器
```powershell
.\__Run_Browser.ps1
```
### 4. 停止基础设施
```powershell
.\__Stop_Infrastructure.ps1
```
## 技术栈
- **框架**: ABP Framework 9.x
- **运行时**: .NET 10.0
- **认证**: IdentityServer + JWT Bearer
- **ORM**: Entity Framework Core + MongoDB
- **消息**: RabbitMQ
- **网关**: Ocelot
- **缓存**: Redis
- **日志**: Serilog