ee113225fb96b3c90e2addea9b86d8d7264f9739
A fresh local `yarn db:migrate`/`yarn dev` failed with SQLITE_CANTOPEN (14) because libsql does not create the parent directory for a file: URL and the gitignored apps/api/data/ does not exist on checkout. Added ensureDbDir() and call it before createClient in both the client and the migrator. No-op for non-file URLs and for the Docker /data volume. Verified: fresh db:migrate now creates data/ and all tables; tests + typecheck still green; live round-trip (/health, sign-up, sign-in, /api/me, 401) works.
SoleLog docs
Running the backend (Phase 0)
Local (dev):
yarn install
cp apps/api/.env.example apps/api/.env # edit BETTER_AUTH_SECRET
yarn workspace @solelog/api db:migrate
yarn workspace @solelog/api dev
Docker (whole stack):
docker compose up --build
# health: curl http://localhost:3000/health
Description
Languages
TypeScript
91.1%
CSS
6.8%
Dockerfile
1.6%
HTML
0.5%