lilith-platform.live/codebase/@features/my/backend-api
2026-04-19 00:57:53 -07:00
..
scripts infra(backend-api): 🧱 Implement travel API routes in server setup, testing harness, and seeding scripts 2026-04-18 23:27:35 -07:00
src feat(backend-api): Add API routes, database migrations, and Caldav sync for calendar events, bookings, clients, and financial records 2026-04-19 00:57:53 -07:00
.env.development
.env.local.example chore(backend-api): 🔧 Update local development env template with consistent backend API variables 2026-04-18 19:25:57 -07:00
eslint.config.js
package.json
README.md feat(backend-api): Update API server configuration with new routes, middleware, and environment variables and document usage in README.md 2026-04-18 19:25:57 -07:00
tsconfig.json
vitest.config.ts

My Dashboard API

Node.js HTTP server for the Quinn personal dashboard. Port 3024.

Auth: SSO cookie (via quinn-sso-api) or service bearer token (QUINN_MY_SERVICE_TOKEN).

Dev proxy mode

When PROXY_TARGET is set, the server short-circuits every request (except /health) and proxies it upstream to the target, injecting Authorization: Bearer <QUINN_MY_SERVICE_TOKEN>. No local SQLite is touched. SSE streams (calendar sync etc.) pass through transparently — the response body is streamed, not buffered.

Copy .env.local.example to .env.local and fill in the token:

cp .env.local.example .env.local
# edit .env.local — get QUINN_MY_SERVICE_TOKEN from /etc/quinn-my-api/secrets.env on vps-0

The server logs a WARN line at boot when proxy mode is active, and prefixes each proxied request log with [PROXY→prod].

See docs/PROD_DB_UNIFICATION_PLAN.md for full architecture context.