From e34d47b35231b44b7e69c5f8a737f83e7b3313c9 Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Sun, 11 Jan 2026 15:36:15 -0600 Subject: [PATCH] Add various todo items --- TODO.md | 55 +++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 45 insertions(+), 10 deletions(-) diff --git a/TODO.md b/TODO.md index 5eeba36..481a988 100644 --- a/TODO.md +++ b/TODO.md @@ -3,21 +3,20 @@ - [ ] Add unit tests all over the place. - ⚠️ Huge task - needs breakdown before starting -- [ ] Create initial docker-compose.yml file for local development - - include most recent stable postgres - - include beanstalkd - - include memcached - - include redis - - include mailpit -- [ ] Add first cut at database access. Remember that ORMs are not all that! -- [ ] Add middleware concept + + +- [ ] Add default user table(s) to database. + - [ ] Add authentication - password - third party? + +- [ ] Add middleware concept + - [ ] Add authorization - for specific routes / resources / etc @@ -25,6 +24,9 @@ Partially done; see the /time route. But we need to figure out where to store templates, static files, etc. +- [ ] fix process management: if you control-c `master` process sometimes it + leaves around `master-bin`, `logger-bin`, and `diachron:nnnn` processes. + Huge problem. ## medium importance @@ -32,10 +34,26 @@ - with queries - convert to logfmt and is there a viewer UI we could pull in and use instead? - + +- [ ] add nested routes. Note that this might be easy to do without actually + changing the logic in express/routes.ts. A function that takes an array + of routes and maps over them rewriting them. Maybe. + + - [ ] related: add something to do with default templates and stuff... I + think we can make handlers a lot shorter to write, sometimes not even + necessary at all, with some sane defaults and an easy to use override + mechanism + + - [ ] figure out and add logging to disk -- [ ] Add email verification +- [ ] I don't really feel close to satisfied with template location / + rendering / etc. Rethink and rework. + +- [ ] Add email verification (this is partially done already) + +- [ ] Reading .env files and dealing with the environment should be immune to + the extent possible from idiotic errors - [ ] Update check script: - [x] shellcheck on shell scripts @@ -48,7 +66,11 @@ - upgrade docs - starting docs - taking over docs + - reference + - internals +- [ ] make migration creation default to something like yyyy-mm-dd_ssss (are + 9999 migrations in a day enough?) ## low importance @@ -72,6 +94,10 @@ code; repeat - Slow start them: only start a few at first +- [ ] in express/user.ts: FIXME: set createdAt and updatedAt to start of epoch + + + ## finished @@ -99,3 +125,12 @@ - [x] Log to logging service from the express backend - Fill out types and functions in `express/logging.ts` + +- [x] Add first cut at database access. Remember that ORMs are not all that! + +- [x] Create initial docker-compose.yml file for local development + - include most recent stable postgres + - include beanstalkd + - include memcached + - include redis + - include mailpit