# Fiddy (External DB) Monorepo scaffold for a budgeting/collaboration app that connects to an external on-prem Postgres server. ## Quick start (dev) 1. Copy env template: - `.env.example` -> `apps/web/.env` 2. Edit `apps/web/.env`: - Set `DATABASE_URL` to your DB server hostname/IP (NOT `db`). - Set `ALLOWED_DB_NAMES` to a comma-separated allowlist (case-insensitive). 3. Start web: - `docker compose -f docker-compose.dev.yml up --build` 4. Apply migrations: - `npm run db:migrate` (ensure `DATABASE_URL` points to the DB you want) ## Prod - Deploy folder: `/opt/fiddy` - Put `.env` in `/opt/fiddy/apps/web/.env` with the prod DB connection string and `ALLOWED_DB_NAMES`. - `docker compose up -d` will run only the web container; DB is external. ## Copilot - See `copilot-instructions.md` and `PROJECT_INSTRUCTIONS.md`