Deploy (Hugging Face Spaces, Docker SDK):
- Root Dockerfile builds a single image: stage 1 builds the React frontend,
stage 2 runs FastAPI serving the built assets plus the API under /api on
port 7860 (same origin, no CORS, one live URL).
- app/server.py: combined ASGI entrypoint mounting the API at /api and the
static frontend at / (guarded so tests import cleanly without a build).
- README front matter (sdk: docker, app_port: 7860) so a Space builds it
directly; .dockerignore for build-context hygiene.
- backend/.env.example and frontend/.env.example document CORS_ORIGINS,
DOCUASK_DB, and VITE_API_URL for split-hosting setups.
Polish:
- README rewritten for a recruiter: description, chat + dashboard
screenshots, feature list, API table, deploy steps, project structure.
- test_server.py verifies the API is reachable under /api in the combined
app.
Verified the combined server locally: /api/health, static index, and
/api/ask all serve correctly from one origin.
Co-Auth…