feat: add shadcn admin workspace

This commit is contained in:
2026-03-28 17:56:36 +08:00
parent ec96d91548
commit 178434d63e
41 changed files with 6153 additions and 16 deletions

View File

@@ -6,8 +6,9 @@ Monorepo for the Termi blog system.
```text
.
├─ admin/ # React + shadcn admin workspace
├─ frontend/ # Astro blog frontend
├─ backend/ # Loco.rs backend and admin
├─ backend/ # Loco.rs backend APIs and legacy Tera admin
├─ mcp-server/ # Streamable HTTP MCP server for articles/categories/tags
├─ .codex/ # Codex workspace config
└─ .vscode/ # Editor workspace config
@@ -41,6 +42,12 @@ Only backend:
.\dev.ps1 -BackendOnly
```
Only admin:
```powershell
.\dev.ps1 -AdminOnly
```
Only MCP:
```powershell
@@ -52,6 +59,7 @@ Direct scripts:
```powershell
.\start-frontend.ps1
.\start-backend.ps1
.\start-admin.ps1
.\start-mcp.ps1
```
@@ -63,6 +71,14 @@ npm install
npm run dev
```
### Admin
```powershell
cd admin
npm install
npm run dev
```
### Backend
```powershell