Repository navigation
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.
From the Miroven root:
cd web
npm ci
npm run devWith 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.
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.
In Miroven-API/:
uv run python scripts/bootstrap_local.py
docker compose -f compose.yaml -f compose.web.yaml up -d --build --waitThe 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.
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 --waitThen 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:integrationPlaywright 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.
- Client development · 클라이언트 개발
- Self-hosting · 자체 호스팅
- PWA, offline use, and updates · PWA·오프라인·업데이트
- Client performance · 클라이언트 성능
- Architecture · 아키텍처
- Cryptographic format · 암호화 형식
- Image processing · 사진 처리
- Security model · 보안 경계
- Product principles · 제품 원칙
- Dependency licenses · 의존성 라이선스
- Account and sync · 계정과 동기화
- Backup and recovery · 백업과 복구
- Entry quotes · 기록 인용
- Profile document · 프로필 문서