feat: add sondad server with config, storage, auth and listening API
- feat(config): TOML config with env overrides, strict parsing and validation - feat(storage): SQLite (modernc) and PostgreSQL (pgx) backends through bun, embedded per-driver SQL migrations with a transactional runner - feat(schema): catalog tables (artists, albums, tracks, audio_files with per-root paths), users and listening events with idempotency keys - feat(auth): Argon2id password hashing, HS256 JWT tokens, first-user-only registration and login - feat(api): gin REST API under /api/v1 (health, register, login, listens) with a consistent error envelope, body limit and request logging - feat(sondad): zap logger, graceful shutdown, composition root in main - chore: example config, .gitignore for secrets, DB files, IDE and agent files
This commit is contained in:
commit
3a739dc3ae
1 changed files with 2739 additions and 0 deletions
23
.gitignore
vendored
Normal file
23
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/bin/
|
||||
*.test
|
||||
*.out
|
||||
sonda.toml
|
||||
*.db
|
||||
*.db-wal
|
||||
*.db-shm
|
||||
|
||||
# AI agent instruction files: never published (Codeberg EULA)
|
||||
agent.md
|
||||
Agent.md
|
||||
AGENT.md
|
||||
agents.md
|
||||
Agents.md
|
||||
AGENTS.md
|
||||
claude.md
|
||||
Claude.md
|
||||
CLAUDE.md
|
||||
GEMINI.md
|
||||
.claude/
|
||||
|
||||
# IDE
|
||||
.idea/
|
||||
Loading…
Reference in a new issue