Go to file
sp mac bookpro 2605 83e4fab788 build: set base path to /aura/ for subpath deployment 2026-05-28 00:47:02 +08:00
public chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
src refactor(constants): apply standard naming convention for placeholder image constants 2026-05-26 00:09:23 +08:00
.env.example chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
.gitignore chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
Dockerfile chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
README.md chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
docker-compose.yml chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
index.html fix(auth): keep mock login and update title 2026-05-24 17:37:45 +08:00
nginx.conf chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
package-lock.json build: add @types/node devDependency for vite config 2026-05-25 23:32:15 +08:00
package.json build: add @types/node devDependency for vite config 2026-05-25 23:32:15 +08:00
tsconfig.json chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
vite.config.ts build: set base path to /aura/ for subpath deployment 2026-05-28 00:47:02 +08:00

README.md

aura-web

Aura Agent Platform 前端项目React + Vite + TypeScript

rh-agent-platform/web/ 拆分独立而来。后端代码现位于平级项目 aura-server

本地开发

npm install
npm run dev          # http://localhost:5173

默认 /api 代理到 http://localhost:4001(即 aura-server 的 Go 服务)。 如需切换:

VITE_API_TARGET=http://localhost:4000 npm run dev

构建

npm run build        # 产物输出至 dist/
npm run preview      # 本地预览

Docker

cp .env.example .env
docker compose up -d --build
# 浏览器访问 http://localhost:8080

目录结构

src/
├── components/   公共组件
├── pages/        路由页面
├── store/        Zustand 状态
├── api.ts        REST/SSE 客户端
└── main.tsx      入口