chore: SQLite schema and database, set up SvelteKit #1

Merged
kritdass merged 3 commits from chore/initial-setup into main 2026-10-13 17:05:21 +00:00
Member

The objective here is to set up the project foundation for the Nova crowd-favorite app, a SvelteKit + TypeScript app with a local SQLite database.

Changes

  • Scaffold SvelteKit (added node adapter)
  • Add better-sqlite3 and a database connection (src/lib/server/db.ts) with foreign keys enabled
  • Add the schema (src/lib/server/schema.sql):
    • teams, team_members: synced from the submission Sheet (Sheet stays read-only)
    • voters: one row per hacker, token stored hashed
    • qr_codes: preprinted codes, claimed by a team member
    • collections: scans + notes, one per voter per team
    • ballots: top 5 as rank_1–rank_5, one per voter
    • settings: voting open/closed
  • Temporary test page that lists the created tables
  • Ignore local .db files
The objective here is to set up the project foundation for the Nova crowd-favorite app, a SvelteKit + TypeScript app with a local SQLite database. ## Changes - Scaffold SvelteKit (added node adapter) - Add better-sqlite3 and a database connection (`src/lib/server/db.ts`) with foreign keys enabled - Add the schema (`src/lib/server/schema.sql`): - `teams`, `team_members`: synced from the submission Sheet (Sheet stays read-only) - `voters`: one row per hacker, token stored hashed - `qr_codes`: preprinted codes, claimed by a team member - `collections`: scans + notes, one per voter per team - `ballots`: top 5 as `rank_1`–`rank_5`, one per voter - `settings`: voting open/closed - Temporary test page that lists the created tables - Ignore local `.db` files
@ -1,3 +1,54 @@
# nova-crowd-favorite
Member

Fix this README. Right now, it's just for a generic Svelte project.

Fix this README. Right now, it's just for a generic Svelte project.
kritdass marked this conversation as resolved
Member

Other than the README, everything else looks good. We do have to figure out how to get this in Kennel, since it doesn't support SQLite in production right now. Right now it looks like either we have to make a PR to Kennel to add that support (I can do that don't worry) or migrate to PostgreSQL. We could also use some other deployment platform.

Other than the README, everything else looks good. We do have to figure out how to get this in Kennel, since it doesn't support SQLite in production right now. Right now it looks like either we have to make a PR to Kennel to add that support (I can do that don't worry) or migrate to PostgreSQL. We could also use some other deployment platform.
chore: configure kennel
Some checks failed
CI / check-1 (pull_request) Failing after 1m29s
CI / build (pull_request) Successful in 2m14s
CI / check (pull_request) Failing after 0s
cc8cae6f4a
fix: include server entrypoint in type checking
Some checks failed
CI / build (push) Successful in 1m54s
CI / check (push) Successful in 0s
CI / check (pull_request) Has been cancelled
CI / build (pull_request) Has been cancelled
CI / check-1 (pull_request) Has been cancelled
CI / check-1 (push) Successful in 1m37s
e9643a42db
kritdass deleted branch chore/initial-setup 2026-10-13 17:05:21 +00:00
Sign in to join this conversation.
No description provided.