Skip to content
SEUNGWOO CHOI edited this page Oct 18, 2026 · 15 revisions

Client development

English · 한국어

Applies to the Miroven v1.0.0 client. Place the client in Miroven/ and the API checkout beside it in Miroven-API/. Requires Node.js 22.13 or later and npm; the combined development stack also needs Docker Compose with a Linux engine.

Local development

From the Miroven root:

cd web
npm ci
npm run dev

With NEXT_PUBLIC_MIROVEN_API_URL unset, the app uses only its local encrypted vault. npm run build creates the static export in web/out/. Use the full build command so CSP and Service Worker post-processing run. See self-hosting for build configuration.

Checks

Run these commands in Miroven/web/:

Command Scope
npm run verify:fast Secret scan, ESLint, and unit tests
npm run verify:full License inspection, fast checks, build, CSP, SW, bundle budgets, rendered HTML, and browser tests
npm run api:generate Copy generated API types from the sibling API checkout
npm run api:check Verify that those types match

Prepare local test browsers with npx playwright install chromium webkit. Checks for a change should cover the affected behavior. A test run is evidence for that environment, not proof of public HTTPS, real SMTP, or physical mobile compatibility. API integration requires the API checkout and a dedicated local development stack; it is separate from local-only browser tests.

Same-origin development stack

In Miroven-API/:

uv run python scripts/bootstrap_local.py
docker compose -f compose.yaml -f compose.web.yaml up -d --build --wait

The app is at http://localhost:8080 and Mailpit at http://localhost:8025. Bootstrap preserves existing environment files. Stop the stack with down using the same Compose file combination; keep volumes.

Split-origin integration checks

Use only the development Mailpit stack. First stop any same-origin stack with its original Compose file combination. In PowerShell, start this from the API folder:

docker compose -f compose.yaml -f compose.split-dev.yaml up -d --build --wait

Then in Miroven/web/:

$env:NEXT_PUBLIC_APP_URL='http://127.0.0.1:3100'
$env:NEXT_PUBLIC_MIROVEN_API_URL='http://127.0.0.1:8000/api/v1'
npm run build
$env:MIROVEN_INTEGRATION_URL='http://127.0.0.1:3100'
$env:MIROVEN_INTEGRATION_API_ORIGIN='http://127.0.0.1:8000'
npm run test:integration

Playwright starts the static server. Stop the API stack with the same Compose files and down. Integration tests can leave synthetic accounts and ciphertext in the development database; Mailpit does not deliver external email.

Distinguish sandbox connection/file restrictions from application failures. If needed, point TEMP and TMP to the ignored web/.local/tmp for Vitest caches. Follow the repository's web/AGENTS.md when using coding agents.

Clone this wiki locally