build: 升级目标框架到net10.0并完善模板配置
1. 将Hua.Cli.Tests、项目共享库、模块项目等所有项目的TargetFramework从net8.0/net9.0升级到net10.0 2. 完善dotnet-tools.json、模板配置文件,添加必要的构建和发布配置 3. 新增微服务、网关、应用程序的启动脚本和基础配置文件 4. 补充产品管理模块的领域、应用、Web层基础代码和多语言资源
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
cd ../applications/Company.Project.AuthServer.Host
|
||||
dotnet run
|
||||
@@ -0,0 +1,2 @@
|
||||
cd ../microservices/Company.Project.IdentityService.Host
|
||||
dotnet run
|
||||
@@ -0,0 +1,2 @@
|
||||
cd ../microservices/Company.Project.TenantManagementService.Host
|
||||
dotnet run
|
||||
@@ -0,0 +1,2 @@
|
||||
cd ../microservices/Company.Project.BloggingService.Host
|
||||
dotnet run
|
||||
@@ -0,0 +1,2 @@
|
||||
cd ../microservices/Company.Project.ProductService.Host
|
||||
dotnet run
|
||||
@@ -0,0 +1,2 @@
|
||||
cd ../gateways/Company.Project.InternalGateway.Host
|
||||
dotnet run
|
||||
@@ -0,0 +1,2 @@
|
||||
cd ../gateways/Company.Project.BackendAdminAppGateway.Host
|
||||
dotnet run
|
||||
@@ -0,0 +1,2 @@
|
||||
cd ../gateways/Company.Project.PublicWebGateway.Host
|
||||
dotnet run
|
||||
@@ -0,0 +1,2 @@
|
||||
cd ../applications/Company.Project.BackendAdminApp.Host
|
||||
dotnet run
|
||||
@@ -0,0 +1,2 @@
|
||||
cd ../applications/Company.Project.PublicWebSite.Host
|
||||
dotnet run
|
||||
@@ -0,0 +1,2 @@
|
||||
cd ../applications/Company.Project.ConsoleClientDemo
|
||||
dotnet run
|
||||
@@ -0,0 +1,24 @@
|
||||
## 运行说明
|
||||
|
||||
### 1. 启动基础设施
|
||||
```powershell
|
||||
__Run_Infrastructure.ps1
|
||||
```
|
||||
|
||||
### 2. 按顺序启动服务(每个在单独的终端中)
|
||||
- `01_AuthServer.ps1` - 认证服务器 (https://localhost:44399)
|
||||
- `02_IdentityService.ps1` - 身份服务 (https://localhost:44368)
|
||||
- `03_TenantManagementService.ps1` - 租户管理服务 (https://localhost:44336)
|
||||
- `04_BloggingService.ps1` - 博客服务 (https://localhost:44357)
|
||||
- `05_ProductService.ps1` - 产品服务 (https://localhost:44344)
|
||||
- `06_InternalGateway.ps1` - 内部网关 (https://localhost:44329)
|
||||
- `07_BackendAdminAppGateway.ps1` - 后台管理网关 (https://localhost:44315)
|
||||
- `08_PublicWebSiteGateway.ps1` - 公开网站网关 (https://localhost:44397)
|
||||
- `09_BackendAdminApp.ps1` - 后台管理应用 (https://localhost:44354)
|
||||
- `10_PublicWebSite.ps1` - 公开网站 (https://localhost:44335)
|
||||
- `11_ConsoleClientDemo.ps1` - 控制台客户端演示
|
||||
|
||||
### 3. 停止基础设施
|
||||
```powershell
|
||||
__Stop_Infrastructure.ps1
|
||||
```
|
||||
@@ -0,0 +1,36 @@
|
||||
# Run all application services in separate terminals
|
||||
# First start infrastructure: __Run_Infrastructure.ps1
|
||||
# Then run each service:
|
||||
|
||||
# Terminal 1: AuthServer
|
||||
# 01_AuthServer.ps1
|
||||
|
||||
# Terminal 2: IdentityService
|
||||
# 02_IdentityService.ps1
|
||||
|
||||
# Terminal 3: TenantManagementService
|
||||
# 03_TenantManagementService.ps1
|
||||
|
||||
# Terminal 4: BloggingService
|
||||
# 04_BloggingService.ps1
|
||||
|
||||
# Terminal 5: ProductService
|
||||
# 05_ProductService.ps1
|
||||
|
||||
# Terminal 6: InternalGateway
|
||||
# 06_InternalGateway.ps1
|
||||
|
||||
# Terminal 7: BackendAdminAppGateway
|
||||
# 07_BackendAdminAppGateway.ps1
|
||||
|
||||
# Terminal 8: PublicWebSiteGateway
|
||||
# 08_PublicWebSiteGateway.ps1
|
||||
|
||||
# Terminal 9: BackendAdminApp
|
||||
# 09_BackendAdminApp.ps1
|
||||
|
||||
# Terminal 10: PublicWebSite
|
||||
# 10_PublicWebSite.ps1
|
||||
|
||||
# Terminal 11: ConsoleClientDemo
|
||||
# 11_ConsoleClientDemo.ps1
|
||||
@@ -0,0 +1,8 @@
|
||||
# 启动浏览器打开各个服务
|
||||
Start-Process "https://localhost:44399" # AuthServer
|
||||
Start-Process "https://localhost:44354" # BackendAdminApp
|
||||
Start-Process "https://localhost:44335" # PublicWebSite
|
||||
Start-Process "https://localhost:44344/swagger" # ProductService
|
||||
Start-Process "https://localhost:44368/swagger" # IdentityService
|
||||
Start-Process "https://localhost:44357/swagger" # BloggingService
|
||||
Start-Process "https://localhost:44336/swagger" # TenantManagementService
|
||||
@@ -0,0 +1,3 @@
|
||||
cd ..
|
||||
docker-compose -f docker-compose.infrastructure.yml -f docker-compose.infrastructure.override.yml up -d
|
||||
cd _run
|
||||
@@ -0,0 +1,3 @@
|
||||
cd ..
|
||||
docker-compose -f docker-compose.infrastructure.yml -f docker-compose.infrastructure.override.yml down
|
||||
cd _run
|
||||
Reference in New Issue
Block a user