A Svelte/SvelteKit app for tracking focus/study sessions and viewing insights. Built with Svelte 5 + Vite, backed by Postgres (Kysely) and Lucia for auth.
npm ci
docker compose up -d
npm run dev
Open the URL printed by Vite (usually http://localhost:5173).
Local Postgres is provided via docker-compose.yml on localhost:5433 with:
study_tracker_dbpostgres / postgresnpm run dev / npm run preview run Kysely migrations automatically. To run them manually (or for troubleshooting):
npm run db:migrate:up
DB connection settings live in src/lib/server/db/db.ts.
npm run dev runs doctor + migrations, then starts the dev servernpm run db:migrate:up runs migrations manuallynpm run check typecheck + svelte-check