Files
delivery-app-web/docs/repositories.md
T

1.3 KiB

Model Delivery repositories

Repository Responsibility
delivery-app-web React/Vite/Dexie PWA, browser tests
delivery-app-api Fastify, Synology SSO, MariaDB migrations, deployment
delivery-app-mobile React Native/Expo for iOS and Android
delivery-app-shared Versioned TypeScript/Zod contracts and pricing rules

Clone from https://git.ruff.co.il/model-dlab/ using your own Git credential helper. Never put credentials in URLs or package manifests. Sibling checkouts are convenient, but ordinary installs/builds need no sibling source. Browser E2E and the combined NAS image explicitly use the web and API checkouts.

The shared dependency is pinned to an immutable Git commit, including its compiled dist files. There is no public npm publication or requirement for a private npm registry. Build, test and commit shared source AND dist together, tag releases, then explicitly update the Git SHA and pnpm lockfile in each consumer. TypeScript code can be reused on mobile; DOM, IndexedDB and Node-specific code cannot.

All clients use one API and the same operational data. SQLite on mobile will implement the existing sync protocol. Do not change deployed database identities, credentials, encryption keys, or OIDC configuration during this source split. The original model-app checkout remains available.