A lightweight bus transport web app that uses the gateway OpenAPI contract at:
The frontend is built with SvelteKit. It dynamically loads transport endpoints from the OpenAPI spec and calls them through a SvelteKit server hook proxy.
bun install
bun run dev
bun run build
bun run preview
You can also use bun run start to run preview mode.
This project includes:
Dockerfilecompose.yamlMakefile wrapper for Docker Compose and Podman ComposeBy default, the container expects your gateway at:
http://host.containers.internal:8067If you use Docker Desktop on macOS and need Docker host mapping instead, set:
API_ORIGIN=http://host.docker.internal:8067make up ENGINE=docker
make up ENGINE=podman
make build ENGINE=docker
make logs ENGINE=docker
make ps ENGINE=docker
make down ENGINE=docker
You can replace ENGINE=docker with ENGINE=podman in all commands.
APP_PORT=3001 API_ORIGIN=http://host.docker.internal:8067 make up ENGINE=docker
src/
app.css
app.html
hooks.server.js
routes/
+layout.svelte
+page.svelte
svelte.config.js
vite.config.js
package.json
/api/* and /openapi.jsonEnvironment variables:
API_ORIGIN (default: http://localhost:8067)Example:
API_ORIGIN=http://localhost:8067 bun run dev -- --port 3001
Legacy files from the earlier custom Node static server version were removed.