841 B
841 B
Fiddy (External DB)
Monorepo scaffold for a budgeting/collaboration app that connects to an external on-prem Postgres server.
Quick start (dev)
- Copy env template:
.env.example->apps/web/.env
- Edit
apps/web/.env:- Set
DATABASE_URLto your DB server hostname/IP (NOTdb). - Set
ALLOWED_DB_NAMESto a comma-separated allowlist (case-insensitive).
- Set
- Start web:
docker compose -f docker-compose.dev.yml up --build
- Apply migrations:
npm run db:migrate(ensureDATABASE_URLpoints to the DB you want)
Prod
- Deploy folder:
/opt/fiddy - Put
.envin/opt/fiddy/apps/web/.envwith the prod DB connection string andALLOWED_DB_NAMES. docker compose up -dwill run only the web container; DB is external.
Copilot
- See
copilot-instructions.mdandPROJECT_INSTRUCTIONS.md