ClareCourseWare / run_web.sh
claudqunwang's picture
Add Clare product UI: run_web.sh, README, exclude hf_space from push
c8c6034
#!/usr/bin/env bash
# 一键启动 Clare 产品版 UI(React + FastAPI)
set -e
cd "$(dirname "$0")"
echo ">>> Building web frontend..."
if [ ! -d "web/node_modules" ]; then
(cd web && npm install)
fi
(cd web && npm run build)
echo ">>> Starting API server (serves Web UI at http://0.0.0.0:8000)..."
exec python -m uvicorn api.server:app --host 0.0.0.0 --port 8000