refactor: migrate backend to TypeScript

This commit is contained in:
gin
2026-06-17 17:40:12 +08:00
parent 98eae63435
commit 74acfd664f
457 changed files with 7397 additions and 25009 deletions
+16 -5
View File
@@ -1,10 +1,20 @@
# Frontend
This workspace contains:
Frontend packages are managed by the root pnpm workspace.
This directory contains:
- `web`: Vite + Vue 3 admin frontend.
- `app`: Taro + Vue 3 app frontend.
Run commands from the repository root:
```bash
pnpm install
pnpm dev:web
pnpm dev:app:weapp
```
## Environment Files
Frontend environment variables are maintained in each app directory.
@@ -29,9 +39,10 @@ VITE_COMPRESSION="none"
VITE_APP_BASE_API=/dev-api
```
For Docker Compose production deployment, `frontend/web/.env.production` uses
`VITE_APP_BASE_API=/prod-api`. The web container's Nginx config proxies
`/prod-api` to the backend container.
For Vercel deployment, create a Web project with `frontend/web` as the Root
Directory. Use the Vite framework preset, `pnpm install`, `pnpm build`, and
`dist` as the output directory. Configure `VITE_APP_BASE_API` in Vercel with
the deployed backend URL.
### App
@@ -49,4 +60,4 @@ TARO_APP_API_BASE=
```
When `TARO_APP_API_BASE` is empty, the app HTTP client falls back to
`http://localhost:8080`.
`http://localhost:3000`.