把 XH巡课 的当前可运行版本放进仓库,方便后续继续改并同步。
This commit is contained in:
commit
6e5107f1b6
134 files changed
+11284
No files matched your search
@@ -0,0 +1,26 @@
|
||||
# XH巡课
|
||||
|
||||
校园课堂直播、巡课和回放。Java 只在 Docker 里编译和运行,不要在 Windows 上安装 JDK。
|
||||
|
||||
## 本地命令
|
||||
|
||||
```powershell
|
||||
copy .env.example .env
|
||||
.\scripts\mvn.ps1 test
|
||||
cd frontend
|
||||
npm install
|
||||
npm test
|
||||
npm run dev
|
||||
```
|
||||
|
||||
前端开发服务器是 `http://localhost:5173`,接口代理到 `http://localhost:8080`。
|
||||
|
||||
完整堆栈:
|
||||
|
||||
```powershell
|
||||
docker compose --env-file .env up --build
|
||||
```
|
||||
|
||||
网站入口是 `http://localhost:8088`。初始管理员来自 `.env` 的 `ADMIN_USERNAME` 和 `ADMIN_PASSWORD`,示例口令只能用于本机。
|
||||
|
||||
浏览器要访问摄像头,请使用 `localhost`。跨公网观看 WebRTC 时,还要把 LiveKit 的节点 IP 和 TURN 配到学校网络,不能只打开 HTTPS。
|
||||
Reference in new issue
Block a user