Commit Graph

4 Commits

Author SHA1 Message Date
clawbot
fd86a774ae fix: change appname to neoirc and default DB to /var/lib/neoirc/state.db
All checks were successful
check / check (push) Successful in 5s
- Change Appname from "chat" to "neoirc" in cmd/chatd/main.go
- Change default DBURL from file:./data.db to file:///var/lib/neoirc/state.db
  in both internal/config/config.go and internal/db/db.go fallback
- Create /var/lib/neoirc/ directory in Dockerfile with proper ownership
- Update README.md to reflect new defaults (DBURL, docker run example,
  SQLite backup/location docs)
- Remove stale data.db reference from Makefile clean target

The DB path remains configurable via DBURL environment variable.

Closes #44
2026-03-06 03:35:47 -08:00
clawbot
ef83d6624b chore: fix Makefile — add fmt-check, docker, hooks targets; 30s test timeout (refs #17) 2026-02-26 06:08:47 -08:00
clawbot
c8f546ecab Add .golangci.yml linting config and comprehensive Makefile 2026-02-09 12:27:39 -08:00
clawbot
8bb083a7f8 Add project scaffolding with fx DI, SQLite migrations, and healthcheck
- go.mod with git.eeqj.de/sneak/chat module
- internal packages: globals, logger, config, db, healthcheck, middleware, handlers, server
- SQLite database with embedded migration system (schema_migrations tracking)
- Migration 001: schema_migrations table
- Migration 002: channels table
- Config with chat-specific vars (MAX_HISTORY, SESSION_TIMEOUT, MAX_MESSAGE_SIZE, MOTD, SERVER_NAME, FEDERATION_KEY)
- Healthcheck endpoint at /.well-known/healthcheck.json
- Makefile, .gitignore
- cmd/chatd/main.go entry point
2026-02-09 12:22:28 -08:00