Integrate React frontend with backend API
This commit is contained in:
@@ -29,3 +29,8 @@ docker compose up --build
|
||||
- 默认会以 `--reload` 模式启动,监听本地 8080 端口,可在浏览器访问 `http://localhost:8080`。
|
||||
- 通过 `./app/config.json` 保存的 Plex 配置信息会在主机和容器间共享,便于调试时保留登录 token 等数据。
|
||||
- 如需自定义端口或其他参数,可在 `docker-compose.yml` 中调整。
|
||||
|
||||
## 前端构建与配置
|
||||
|
||||
- `sample-front-end` 中提供了新的 React UI,运行 `npm install && npm run build` 会将打包产物输出到 `app/static/frontend`,API 直接调用 FastAPI 后端。
|
||||
- 环境变量 `STATUS_CHECK_INTERVAL_SECONDS` 用于控制前端自动刷新云端连接状态的轮询间隔(默认 45 秒,最小 15 秒),用于避免频繁请求导致的循环异常。
|
||||
|
||||
Reference in New Issue
Block a user