thalos-web/docs/runbooks/local-development.md
2026-03-31 16:06:15 -06:00

40 lines
775 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:22080/callback \
VITE_THALOS_DEFAULT_TENANT_ID=demo-tenant \
VITE_THALOS_ENABLE_MANUAL_LOGIN=true \
npm run dev
```
## Auth Model
- Central login starts via `GET /api/identity/oidc/google/start`.
- Callback route validates query parameters and resolves session by calling refresh/me endpoints.
- Session cookies are sent with `credentials: include`.
- Manual session login is available locally by setting `VITE_THALOS_ENABLE_MANUAL_LOGIN=true`.
## Build
```bash
npm run build
```
## Test
```bash
npm run test:ci
```
See also: `docs/runbooks/testing.md`