Repository navigation
Scaffold SvelteKit app with SQLite, CI and Docker - #8
Merged
Merged
Conversation
- SvelteKit 3 (TypeScript, adapter-node) with a nav layout and placeholder pages for Inbox, Review, Tasks, Time, Report, Settings - better-sqlite3 database at DATABASE_PATH (default ./data/dumpdown.db) with a numbered-SQL migration runner applied on server start and an initial schema: dumps, tasks, time_entries, categories, category_rules, settings - Vitest with DB test helpers, ESLint + Prettier, svelte-check - GitHub Actions CI: lint, check, test, build, docker build + smoke test - Multi-stage non-root Dockerfile with /data volume and healthcheck, docker-compose with optional ollama service (profile llm) - README development and Docker instructions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Thanks for this, it's a clean and small scaffold. I checked it against #1 item by item. Scope vs #1
Done when
Security / hygiene
Nits (not blockers)
Looks good to merge from my side. 🚀 -- OpenSourcerer (Rootshift review) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /healthz.DATABASE_PATH(default./data/dumpdown.db). A small migration runner applies numberedNNN_name.sqlfiles fromsrc/lib/server/db/migrations/in their own transactions, tracked inschema_migrations, from the serverinithook on startup.dumps,tasks,time_entries(source calendar|timer|manual, start_at, end_at, title, project, external_id),categories,category_rules,settings.npm run check(svelte-check),npm test,npm run build./healthzon an empty volume.nodeuser,/datavolume, healthcheck) anddocker-compose.ymlwith the app and an optionalollamaservice (profilellm).How it was tested
npm run lint,npm run check(0 errors, 0 warnings),npm test(13 tests pass),npm run build.DATABASE_PATHresolution, and the server init hook creating and migrating an empty DB atDATABASE_PATH.node buildlocally against an emptyDATABASE_PATH./healthzreturned{"ok":true}and all tables were created.dockerjob builds the image and runs the smoke test.Closes #1
🤖 Generated with Claude Code