mirror of
https://github.com/iritmaximus/wasab.git
synced 2026-10-12 20:03:31 +03:00
b70011337132fc36fb2ff83744b36f7446a21b25
wasab
Home page for pumppi.dev: links to every app running on the k8s-pumppi cluster.
Vite + React + TypeScript, static build served by nginx.
Develop
npm install
npm run dev
| Script | |
|---|---|
npm run lint |
oxlint |
npm run fmt / fmt:check |
oxfmt |
npm run typecheck |
tsc --noEmit |
npm test |
Vitest unit/component tests (-- --coverage enforces 90%) |
npm run test:e2e |
Playwright against a production build (run npx playwright install firefox once) |
Adding an app
Add an entry to src/apps.ts. access lists how you get in: sso if the ingress uses the
Authelia middleware, login if the app has its own login (both is fine). Then update the host list
in src/apps.test.ts, which is there so a removed or mistyped app is noticed.
Deploy
Pushing to main runs CI and publishes ghcr.io/iritmaximus/wasab:latest. Argo CD image-updater
picks up the new digest and rolls out k8s-pumppi/wasab. The container serves on port 8080 with a
/health endpoint for probes.
docker build -t wasab . && docker run --rm -p 8080:8080 wasab
Languages
TypeScript
76.1%
CSS
21.4%
HTML
1.5%
Dockerfile
1%