.env file at the repo root (server) and apps/web/.env (renderer). Copy the examples to start:
Runtime
Storage and database
In Electron Desktop,
DATABASE_URL is set automatically to the OS user-data folder:
- macOS:
~/Library/Application Support/FamilyCo/familyco.db - Windows:
C:\Users\<user>\AppData\Roaming\FamilyCo\familyco.db - Linux:
~/.config/FamilyCo/familyco.db
Queue
Authentication and security
Renderer (apps/web/.env)
Only needed when running the web client standalone against an external server:
Read-only mode
If startup migration safety fails, the server enters read-only mode. Mutation routes return503 READ_ONLY_MODE until you fix the database state and restart. The health endpoint reports read-only status.