No description
- Go 52.2%
- Vue 39.3%
- TypeScript 4.4%
- CSS 3%
- Dockerfile 0.8%
- Other 0.3%
| internal/db | ||
| migrations | ||
| queries | ||
| web | ||
| .air.toml | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| auth.go | ||
| bulk_test.go | ||
| calendar.go | ||
| calendar_test.go | ||
| calendars.go | ||
| crud.go | ||
| docker-compose.yml | ||
| Dockerfile | ||
| flake.lock | ||
| flake.nix | ||
| go.mod | ||
| go.sum | ||
| handlers.go | ||
| mail.go | ||
| main.go | ||
| migrate_test.go | ||
| plan.md | ||
| planner.go | ||
| planner_test.go | ||
| README.md | ||
| search.go | ||
| search_test.go | ||
| server.go | ||
| sqlc.yaml | ||
| stats.go | ||
| stats_test.go | ||
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 devserves the frontend with HMR on :3000 (the websocket shares that port). The source is bind-mounted. On Docker Desktop (macOS/Windows) also setWATCH_POLLING=true. - prod: built binary and built Nuxt server, no reload.
FRONTEND_PORTchanges 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/.