UFOSINT/UAP-Data-Analysis-Tool
1
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Modern FrontEnd (React + FastAPI)
The repo ships a decoupled web stack alongside the Streamlit app:
- Backend — FastAPI service under
./api(routes inapi/routes/, services inapi/services/, models inapi/models/). - Frontend — Vite + React + TypeScript + Tailwind + Zustand under
./frontend, talking to the backend through a Vite proxy.
Prerequisites
- Python 3.11+ with
fastapianduvicorninstalled (covered byrequirements.txt/pyproject.toml). - Node 20+ for the frontend.
1. Start the backend (FastAPI)
From the repo root:
uvicorn api.main:app --reload --port 8000The --reload flag picks up code changes automatically.
2. Start the frontend (Vite + React)
cd frontend
npm install # first time only
npm run devVite starts on port 5173 and proxies every /api/* request to http://localhost:8000 (see frontend/vite.config.ts), so the React app calls FastAPI transparently — no CORS configuration needed.
3. Open the app
http://localhost:5173
Production build
cd frontend
npm run build # output in frontend/distServe the dist/ artifacts behind any static host and keep uvicorn api.main:app running for the API.
