Spaces:
Sleeping
Sleeping
Commit History
-
feat: add graceful shutdown handler
- Close the HTTP server and Redis connection on SIGINT and SIGTERM - Add an integration test covering the shutdown pathcfbebe0 -
feat: seed environment settings and extract SETTING_DEFS
- Move environment settings into a shared config definition - Persist environment-backed settings into the settings table at seed time7f0d072 -
feat: add pagination, search, and sorting to list endpoints
- Support _page, _limit, _start, and _end pagination parameters - Add q text search across resources - Add _sort and _order on all listable resourceseab7289
-
test: add load-env coverage test
- Test chained env loading, override precedence, and error paths45c48e9
-
refactor: reorganize src into feature subdirectories
- Group config, db, middleware, redis, and server code into subfolders - Update all require paths across the codebase1f0f638
-
refactor: make rate-limiter require config lazily
- Resolve rate-limit settings at middleware creation instead of module load - Decouple the rate limiter from global config to simplify testing2e1ef81
-
refactor: add v8 ignore annotations and export printLog for tests
- Annotate CLI-only and environment-loading code paths for V8 coverage - Remove the legacy tests/test.js runner replaced by vitest - Export printLog from the server module for coverage testsf19b08d
-
refactor: prepare server module for testing
- Guard server startup behind the START_SERVER environment flag - Export the request handler and server instance for test injection9e8da7a -
feat: add SQL query logger for database operations
- Log every SQL statement when DEBUG_SQL is enabled - Wrap db prepare, run, get, and all calls with a logging proxybb750d6 -
feat: fetch seed data from JSONPlaceholder API
- Replace hardcoded sample data with live data from JSONPlaceholder - Add fallback logging when the remote fetch fails4efee17
-
refactor: extract migrate and seed into standalone scripts
- Move schema creation into a reusable db/migrate script - Split data seeding into a separate db/seed script - Remove implicit migration from server startup96a886b -
feat: scaffold HTTP REST API server with SQLite backend
- Set up the project with Node.js built-ins only (http, SQLite, Redis client) - Implement JSONPlaceholder-compatible CRUD endpoints for all six resources - Add in-memory and Redis-backed rate limiting - Add dotenv-based environment loading with example env files1a25764