- proxy Go /api/stream through Nitro; drive /stage, /live, /plan and /forecast from scenario events - fall back to 5 s polling after SSE failures or heartbeat silence; show Live/Polling/Offline - authenticate /control and POST /api/scenario in Nitro with server-side control credentials - add big-screen stage with local QR and a no-login phone recommendation view - add SSE unit tests and a live smoke test; refresh README/Makefile
34 lines
608 B
Makefile
34 lines
608 B
Makefile
NPM ?= npm
|
|
|
|
.PHONY: install dev build test check preview docker-build smoke smoke-live
|
|
|
|
install:
|
|
$(NPM) ci
|
|
|
|
dev:
|
|
$(NPM) run dev
|
|
|
|
build:
|
|
$(NPM) run build
|
|
|
|
test:
|
|
$(NPM) test
|
|
|
|
# Local equivalent of .gitea/workflows/ci.yml.
|
|
check: install build test
|
|
|
|
preview:
|
|
$(NPM) run preview
|
|
|
|
docker-build:
|
|
docker build -t pulsecast-web:local .
|
|
|
|
# Requires a running web server (npm run preview or node .output/server/index.mjs).
|
|
smoke:
|
|
node scripts/smoke-api.mjs
|
|
|
|
# Requires Go on 18080, ML on 18000 and this app on 13000.
|
|
# See README "Live stack" for the exact environment.
|
|
smoke-live:
|
|
node scripts/smoke-live.mjs
|