item-atlas/apps/pc/README.md

1.1 KiB
Raw Permalink Blame History

见物桌面工作台

Vue 3、TypeScript、Vue Router 和 Vite。网页使用同源 /api 接现有网关,账号、物品和布局与 iOS 共享。

公网地址为 pc-atlas.tutudog.com。

本地运行

使用 Node.js 24。在仓库根目录执行:

npm --prefix apps/pc ci
npm --prefix apps/pc run dev -- --port 4173

打开 http://127.0.0.1:4173。开发代理默认使用公网预览 API,可用 ATLAS_GATEWAY_URL 切换到其他网关。登录令牌只在当前页面内存中使用,刷新页面后重新登录。

构建与部署

npm --prefix apps/pc run build
docker build -t item-atlas-pc:0.1.0 apps/pc

镜像监听 8080,就绪检查用 /healthz。容器内 ATLAS_GATEWAY_URL 默认指向同命名空间的 http://item-atlas-gateway:8080。公网云机将页面请求转发到 PC 容器,并将同源 API 请求直接转发到网关通道。Drone 在现有流水线运行 build-pc 构建检查。

产品交互 · 公网部署