A minimal Go web UI skeleton.
- Module:
github.com/awanio/forklift-wui - Entry point:
cmd/forklift-wui/main.go - Static assets:
web/
Backend (Go):
-
Run locally:
go run ./cmd/forklift-wui- Or
make run
-
Build binary:
make build(outputs tobin/forklift-wui)
-
Build container image:
make docker-build
Frontend (Vite + Tailwind + Lit):
- From
web/:- Install deps:
npm install - Dev server:
npm run dev - Build:
npm run build(outputs toweb/dist/)
- Install deps:
To serve the built frontend with Go, either:
- Copy
web/dist/*intoweb/(replacing dev source) or - Change
WEB_DIRenv toweb/distwhen running the Go server.
ADDR(default:8080) – address to bind the serverWEB_DIR(defaultweb) – directory to serve static files from