Files
home-pump/frontend
root 8ae6cea536
CI / Check (gateway, backend, frontend) (push) Successful in 1m16s
Merge master into feat/show-versions
# Conflicts:
#	backend/src/main/java/home/backend/Backend.java
#	backend/src/test/java/home/backend/adapters/http/ApiServerTest.java
#	gateway/README.md
2026-10-24 12:53:16 +02:00
..
2026-10-24 12:53:16 +02:00

Frontend

The web UI (ADR-008, ADR-010): React, TypeScript, Vite, Tailwind and Recharts, Polish texts. In production nginx serves the build and passes /api/ to the backend, so both share one origin.

cd frontend && npm ci
npm run dev        # http://localhost:5173, /api to BACKEND (default http://localhost:8080)
npm test           # Vitest; reads the API contract from backend/src/test/resources/api
npm run build      # into dist/
docker compose -f frontend/compose.yaml up --build   # after the backend's; .env sets HOST and KROSNO_SOURCES

The overview picture is research/ui/house-cutaway.webp; python3 scripts/house-assets.py makes the sizes and the pipe masks in src/assets/ from it.

The release tag is baked in at build (VERSION build arg, dev by default) and shown with the backend's and gateway's versions in the "Wersje" card of the Stan screen.