u1 a9ccc0b00e feat(visualizer): add build overlay toggle
Default is off so candles match production; enable via the new Build button when needed.
2026-01-09 03:22:31 +01:00
2026-01-06 12:33:47 +01:00

trade-frontend

Frontend (SPA) + prosty serwer (basic auth + proxy do trade-api).

Dev

W tym repo app jest w apps/visualizer/.

cd apps/visualizer
npm ci
npm run dev

Dev z backendem na VPS (staging)

Najprościej: trzymaj VITE_API_URL=/api i podepnij Vite proxy do VPS (żeby nie bawić się w CORS i nie wkładać tokena do przeglądarki):

cd apps/visualizer
API_PROXY_TARGET=https://trade.mpabi.pl \
npm run dev

Vite proxyuje wtedy: /api/*, /whoami, /auth/*, /logout do VPS. Dodatkowo w dev usuwa Secure z Set-Cookie, żeby sesja działała na http://localhost:5173.

Jeśli staging jest dodatkowo chroniony basic auth (np. Traefik basicAuth), ustaw: API_PROXY_BASIC_AUTH='USER:PASS' albo API_PROXY_BASIC_AUTH_FILE=tokens/frontend.json (pola username/password).

Docker

docker build -t trade-frontend .
docker run --rm -p 8081:8081 trade-frontend

Jeśli auth jest realizowany przed aplikacją (np. Traefik basicAuth), ustaw BASIC_AUTH_MODE=off, żeby wyłączyć wbudowany basic auth w serwerze.

Description
No description provided
Readme 219 KiB
Languages
TypeScript 75.3%
CSS 13.5%
JavaScript 10.6%
Dockerfile 0.4%
HTML 0.2%