No description
  • Go 52.2%
  • Vue 39.3%
  • TypeScript 4.4%
  • CSS 3%
  • Dockerfile 0.8%
  • Other 0.3%
Find a file
2026-10-09 00:41:39 +02:00
internal/db init commit 2026-10-09 00:41:39 +02:00
migrations init commit 2026-10-09 00:41:39 +02:00
queries init commit 2026-10-09 00:41:39 +02:00
web init commit 2026-10-09 00:41:39 +02:00
.air.toml init commit 2026-10-09 00:41:39 +02:00
.dockerignore init commit 2026-10-09 00:41:39 +02:00
.env.example init commit 2026-10-09 00:41:39 +02:00
.gitignore init commit 2026-10-09 00:41:39 +02:00
auth.go init commit 2026-10-09 00:41:39 +02:00
bulk_test.go init commit 2026-10-09 00:41:39 +02:00
calendar.go init commit 2026-10-09 00:41:39 +02:00
calendar_test.go init commit 2026-10-09 00:41:39 +02:00
calendars.go init commit 2026-10-09 00:41:39 +02:00
crud.go init commit 2026-10-09 00:41:39 +02:00
docker-compose.yml init commit 2026-10-09 00:41:39 +02:00
Dockerfile init commit 2026-10-09 00:41:39 +02:00
flake.lock init commit 2026-10-09 00:41:39 +02:00
flake.nix init commit 2026-10-09 00:41:39 +02:00
go.mod init commit 2026-10-09 00:41:39 +02:00
go.sum init commit 2026-10-09 00:41:39 +02:00
handlers.go init commit 2026-10-09 00:41:39 +02:00
mail.go init commit 2026-10-09 00:41:39 +02:00
main.go init commit 2026-10-09 00:41:39 +02:00
migrate_test.go init commit 2026-10-09 00:41:39 +02:00
plan.md init commit 2026-10-09 00:41:39 +02:00
planner.go init commit 2026-10-09 00:41:39 +02:00
planner_test.go init commit 2026-10-09 00:41:39 +02:00
README.md init commit 2026-10-09 00:41:39 +02:00
search.go init commit 2026-10-09 00:41:39 +02:00
search_test.go init commit 2026-10-09 00:41:39 +02:00
server.go init commit 2026-10-09 00:41:39 +02:00
sqlc.yaml init commit 2026-10-09 00:41:39 +02:00
stats.go init commit 2026-10-09 00:41:39 +02:00
stats_test.go init commit 2026-10-09 00:41:39 +02:00

Pal

Study tracker: Go JSON API (SQLite, goose, sqlc) + Nuxt 4 SSR frontend (PrimeVue 4).

Run (development)

nix develop            # or: nix develop path:. while flake.nix is untracked
cp .env.example .env   # fill in SMTP_PASSWORD; PAL_BASE_URL must be the Nuxt URL
air                    # Go API on :8080
cd web && npm install && npm run dev   # Nuxt on :3000, proxies /api to :8080

Docker

One docker-compose.yml, two images (Dockerfile, web/Dockerfile), each with a debug and a prod stage. Set PAL_ENV=debug or PAL_ENV=prod in .env and run:

docker compose up --build
  • debug: Air rebuilds the API on Go/SQL changes, nuxt dev serves the frontend with HMR on :3000 (the websocket shares that port). The source is bind-mounted. On Docker Desktop (macOS/Windows) also set WATCH_POLLING=true.
  • prod: built binary and built Nuxt server, no reload. FRONTEND_PORT changes the published port.

Production (without Docker)

cd web && npm run build
NUXT_API_BASE=http://localhost:8080 node .output/server/index.mjs

PAL_BASE_URL (Go) must be the public Nuxt URL: e-mail links point at it.

Google Calendar

In Google Calendar open Settings → your calendar → "Integrate calendar" and copy the Secret address in iCal format. Paste it under Profile → Google Calendar in Pal. Pal only reads events; recurring events appear at their first occurrence only.

Regenerate

sqlc generate after editing queries/ or migrations/.