Graphical arrival and departure board for railway stations in Switzerland.
This is a just for fun project.
The latest image is automatically deployed at trackz.ch.
To execute the app in the development mode either run
devbox run -- npm ci
devbox run -- npm run dev
The page will reload if you make edits. You will also see any lint errors in the console.
Inside an sbx sandbox, the dev server isn't reachable from the host until its port is published:
sbx ports <sandbox-name> --publish 5173:5173/tcp
Vite's --host 0.0.0.0 only binds IPv4, but the published port also forwards IPv6
(::1). If the host resolves localhost to ::1 first, the connection reaches the
sandbox with nothing listening on IPv6 and gets dropped. Bind Vite dual-stack instead:
devbox run -- npm run dev -- --host :: --port 5173
To replicate the pull request checks locally, run the following commands in sequence:
devbox run -- npm ci
devbox run -- npm run build
devbox run -- npm run lint
devbox run -- npm run format:check