46 lines
998 B
Markdown
46 lines
998 B
Markdown
# Local Development
|
|
|
|
## Install
|
|
|
|
```bash
|
|
npm install
|
|
```
|
|
|
|
## Run
|
|
|
|
```bash
|
|
VITE_API_BASE_URL=http://localhost:8080 \
|
|
VITE_THALOS_AUTH_BASE_URL=http://localhost:20080 \
|
|
VITE_THALOS_DEFAULT_RETURN_URL=http://localhost:23280/board \
|
|
VITE_THALOS_DEFAULT_TENANT_ID=demo-tenant \
|
|
npm run dev
|
|
```
|
|
|
|
## Auth Model
|
|
|
|
- Login is executed via central Thalos OIDC start endpoint.
|
|
- Business calls are gated behind session checks.
|
|
- Session cookies are sent with `credentials: include`.
|
|
- Workflow calls that return `401` trigger session revalidation and then guide the user back to central login.
|
|
|
|
## Available Screens
|
|
|
|
- `/board`: lane-based kitchen board and board event feed
|
|
- `/board`: lane-based kitchen board tied to restaurant order progression and handoff readiness
|
|
- `/actions`: claim, release, transition, and priority operator controls
|
|
- `/session`: current Thalos session profile payload
|
|
|
|
## Build
|
|
|
|
```bash
|
|
npm run build
|
|
```
|
|
|
|
## Test
|
|
|
|
```bash
|
|
npm run test:ci
|
|
```
|
|
|
|
See also: `docs/runbooks/testing.md`
|