Files
frontend/README.md
T
ksv741 c97f62bd98 refactor: align frontend ownership boundaries
Close audit gaps across API drift, query policy, UI, and tests.
2026-09-06 18:20:05 +03:00

48 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# WealthLedger frontend
React/Vite-клиент WealthLedger. Клиент получает данные только через typed API
backend; прямые вызовы T-Bank из frontend не допускаются.
## Быстрый старт
Требуется Node 22 (`.nvmrc`). Создайте `.env` из примера и установите
зависимости строго из lockfile:
```bash
cp .env.example .env
npm ci
npm run dev
```
`VITE_API_BASE_URL` по умолчанию указывает на `http://localhost:3000`.
## Проверка
```bash
nvm use --silent
npm run verify
```
Команда проверяет, что generated OpenAPI types соответствуют committed snapshot,
затем запускает strict TypeScript, Biome, один coverage-backed запуск Vitest,
Knip, dependency rules и production build. Если backend-контракт изменился,
обновите `src/shared/api/spec/openapi.json` копированием backend OpenAPI
document и затем выполните `npm run openapi:generate`.
## Документация
- [Структура и FSD](docs/STRUCTURE.md)
- [API layer и OpenAPI](docs/API-LAYER.md)
- [UI-паттерны](docs/UI-PATTERN.md)
- [Conventions](docs/CONVENTIONS.md) и [тестирование](docs/TESTING.md)
- [Обзор поставленной системы](../docs/architecture/system-overview.md)
- [Engineering governance и risk-based testing](../docs/development/engineering-governance.md)
- [OpenSpec authority и lifecycle](../docs/development/openspec-authority-and-lifecycle.md)
- [Frontend workflow](../docs/development/frontend-workflow.md)
- [Remediation registry](../docs/development/audit-remediation.md)
Runtime OpenAPI backend сверяется с frontend snapshot отдельной read-only
backend командой `npm run test:openapi-contract`.
Полный multi-repository change проверяется из workspace командой
native OpenSpec validation and the canonical gates of each affected repository.