5 Commits

Author SHA1 Message Date
darroyo 05604a8f12 Makefile: frontend/install uses npm ci, frontend/build depends on frontend/install
CI / test (push) Failing after 12m51s
2026-07-31 15:15:25 -04:00
darroyo 0d6c8c7989 Add embedded Vue SPA admin panel with go:embed
CI / test (push) Failing after 13m11s
This is the complete fix for the missing /admin/ route and frontend serving:

Backend:
- internal/web/web.go: new package with go:embed for web/dist/
- internal/api/router.go: add routes for /admin/, /admin/*, /assets/*
- internal/db/db.go: fix SQLite DSN parsing (sqlite:///path -> path)

Build system:
- Makefile: new 'embed-prep' target copies web/dist to internal/web/dist
- make build now runs embed-prep -> frontend/build automatically

Deployment:
- deploy/llamalink.service: remove invalid --host/--port flags,
  add EnvironmentFile=/etc/llamalink/env

Verified:
- /health returns 200
- /admin/ serves Vue SPA HTML
- /assets/* serves CSS and JS files from embedded FS
- sqlite:///./llamalink.db works correctly
2026-07-31 14:47:15 -04:00
darroyo cfcf9dbeec Fix CI: update Go version to 1.25, use specific package paths
CI / test (push) Failing after 12m36s
- .github/workflows/ci.yml: go-version '1.23' -> '1.25' to match go.mod
- All go build/vet/test/lint: use ./cmd/... ./internal/... instead of ./...
  to avoid picking up Go packages in node_modules/ (flatted)
- Makefile: same fix for test target
2026-07-30 14:48:16 -04:00
darroyo f88b8e099b Add .deb packaging, GitHub Actions CI/CD, and release workflows
CI / test (push) Failing after 17m30s
- Makefile: add 'deb' and 'release' targets; fix migrate/create syntax
- scripts/build-deb.sh: build .deb with systemd unit, postinst/prerm/postrm
- .github/workflows/ci.yml: go build, test, lint on PR/push to main
- .github/workflows/release.yml: multi-platform build (linux/darwin/windows
  × amd64/arm64), .deb for Linux, tarballs, draft GitHub Release on tag v*
- README.md: add CI/Release badges, Install section with .deb and binary
  release instructions
2026-07-30 12:42:10 -04:00
darroyo 4c9ed3c24b Initial commit: LlamaLink Go rewrite
Complete rewrite from Python/FastAPI to Go/Gin:
- Go backend: auth (API keys + bcrypt), llama.cpp subprocess manager,
  hot-swap multi-model, rate limiting, quota system, webhooks
- Vue 3 SPA admin panel (src/) with Tailwind CSS
- Deployment: Docker multi-stage, docker-compose, nginx, systemd
- GORM/SQLite models: ApiKey, Model, UsageLog, Quota, Webhook
- REST API: /api/v1/admin/* (keys, models, chat, usage, health)
- Embedded frontend via go:embed (build output at web/dist/)

Removed legacy Python artifacts (app/, tests/, pyproject.toml, etc.)
2026-07-30 10:58:55 -04:00