Files

23 lines
1.1 KiB
Markdown

# Model Delivery web
Hebrew RTL React/Vite PWA with Dexie offline data and a durable outbox. All existing screens and branding are retained.
```sh
corepack enable
pnpm install --frozen-lockfile
# Copy .env.example to .env; start delivery-app-api separately.
pnpm dev
```
Open http://localhost:5173. API calls remain same-origin /api; Vite proxies locally to port 3001. Production must proxy /api to the API and block public /local-admin and /api/local-admin. Never serve this frontend on an unrelated origin without designing authentication accordingly.
```sh
pnpm typecheck
pnpm test
pnpm build
```
Output: dist/. For browser regression tests, clone delivery-app-api alongside this repo, install/build it, configure its local .env and run its pnpm db:test:prepare (isolated model_delivery_test only). Then run pnpm exec playwright install chromium and pnpm test:e2e here. MODEL_API_DIR can override the API checkout path. Do not run two suites against the same test database concurrently.
The API repo can bundle this dist into the existing single-container NAS deployment; see its README. [Repository map](docs/repositories.md).