diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-07-27 16:54:28 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-07-27 16:54:28 +0200 |
| commit | 71ca66bcba70f7a463df6ee9bdcb0e14b8e60595 (patch) | |
| tree | 6e962f0d8c3346fd871cb337f9c5a14e4c0f0a08 /drizzle.config.ts | |
| parent | ed39c60ebc10efe2b644172e7c82f943c4fba3cc (diff) | |
feat: minimal grocery list — add items, check them off
- Groceries DB schema (id, name, checked, created_at) with Drizzle + libsql
- /+page.server.ts: load (unchecked items, newest first), add & toggle actions
- /+page.svelte: text input + Add button, item list with toggle buttons
- Mobile-first styling with scoped CSS classes
- AGENTS.md: project-specific rules including UI validation
Diffstat (limited to 'drizzle.config.ts')
| -rw-r--r-- | drizzle.config.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drizzle.config.ts b/drizzle.config.ts new file mode 100644 index 0000000..a0d5617 --- /dev/null +++ b/drizzle.config.ts @@ -0,0 +1,10 @@ +import { defineConfig } from 'drizzle-kit'; + +export default defineConfig({ + schema: './src/lib/server/db/schema.ts', + out: './drizzle', + dialect: 'sqlite', + dbCredentials: { + url: process.env.DATABASE_URL ?? 'file:./data.db', + }, +}); |
