Web UI
React + Vite (TypeScript) frontend for the single search bar / library / calendar / settings / onboarding wizard of the Mediarium app.
The compiled Go binary embeds this app's production build (web/dist/, via go:embed in web/embed.go) so the whole app ships as one binary/one port. web/dist/index.html in the repo is a placeholder — it exists only so go build ./... succeeds on a fresh clone without requiring Node at all. Build the real thing before you actually want to use the UI:
cd web
npm install
npm run build
Then rebuild the Go binary (go build ./... from the repo root) to pick up the new embedded files — go:embed bakes them in at compile time, so a running server or a stale binary won't see a frontend rebuild until it's recompiled.
web/dist/ (other than the tracked placeholder index.html) is gitignored — it's a build artifact, not source. Don't commit a real npm run build output over the placeholder; the Dockerfile's multi-stage build regenerates it for real images.
For local frontend-only iteration against an already-running backend:
npm run dev
Vite's dev server proxies /api to http://localhost:8080 by default (see vite.config.ts). The app itself listens on port 8264, so if you run the Go server directly (go run ./cmd/app) start Vite with API_TARGET=http://localhost:8264 npm run dev.