feat: initialize managed portal

This commit is contained in:
Yoilun
2026-04-27 10:04:36 +08:00
commit d4e351df71
145 changed files with 13425 additions and 0 deletions

60
README.md Normal file
View File

@@ -0,0 +1,60 @@
# Managed Portal
Standalone management portal for:
- managed child services
- web device scanning and proxy access
- copied child service source under `managed/`
## Status
This repository is being split out from `video_recognition_local`.
Current target shape:
- backend: Go service on `:8080`
- frontend: Vue 3 + Element Plus
- public entry: `:13000`
## Planned local commands
Backend:
```bash
go test ./...
go run ./cmd/managed-portal
```
Frontend:
```bash
cd web
pnpm install
pnpm dev
pnpm build
```
Docker:
```bash
cd deploy
docker compose --env-file managed-portal.env up -d --build
```
## Child services
The child service source is part of this repository:
- `managed/store_dwell_alert`
- `managed/people_flow_project`
The default Compose stack builds and starts both child services alongside the portal.
Before building the child service images, provide the runtime weights expected by
their Dockerfiles:
- `managed/store_dwell_alert/weights/yolo11n.pt`
- `managed/people_flow_project/weights/yolo11n.pt`
- `managed/people_flow_project/weights/deepface/age_model_weights.h5`
- `managed/people_flow_project/weights/deepface/gender_model_weights.h5`
- `managed/people_flow_project/weights/deepface/retinaface.h5`