feat: add Vite configuration for Tiku.PlatformAdmin.Web and update documentation

- Introduced Vite configuration files (vite.config.js, vite.config.ts, vite.config.d.ts) for the React frontend.
- Configured server proxy settings for API endpoints.
- Added Vitest configuration files (vitest.config.js, vitest.config.ts, vitest.config.d.ts) for testing.
- Updated architecture overview to reflect the separation of the platform admin frontend into its own React project.
- Modified quickstart documentation to guide users on starting the platform admin frontend.
This commit is contained in:
2026-07-30 14:54:53 +08:00
parent 8eaad9a358
commit 30fd159041
62 changed files with 63463 additions and 3760 deletions

View File

@@ -53,7 +53,7 @@ Forwarded Headers
-> Controllers
```
OpenAPI 和 Scalar 只在 Development 映射。平台管理静态文件由 `Tiku.Api/wwwroot` 同源托管,默认入口是 `/platform-admin/`
OpenAPI 和 Scalar 只在 Development 映射。平台管理端位于独立的 `Tiku.PlatformAdmin.Web` React 工程,由 OpenAPI 生成接口契约并单独构建、部署;`Tiku.Api` 不再托管平台前端静态文件
### DbMigrator

View File

@@ -81,7 +81,7 @@ dotnet run --project Tiku.Api
默认 Development 入口:
- 平台管理端:<http://localhost:5090/platform-admin/>
- 平台管理端:首次在 `Tiku.PlatformAdmin.Web` 执行 `npm install`;之后启动 `Tiku.Api` 时会在 Development 自动启动前端,访问 <http://localhost:5173>
- Scalar<http://localhost:5090/scalar/v1>
- OpenAPI JSON<http://localhost:5090/openapi/v1.json>
- Liveness<http://localhost:5090/api/health>