React/Vite frontend for the Verity supply-chain-finance Phase 1 workflows.
- Node.js 20+
- React 19
- Vite
- TypeScript
- Vitest
- Playwright
npm install
cp .env.example .env.local
npm run devThe dev server runs on http://localhost:3000.
VITE_API_BASE_URL points the UI at VerityAPI. If omitted, the UI uses:
http://localhost:8080/api/v1
Portal login always signs in through VerityAPI and loads role workspace state from:
GET /workspaces/buyerGET /workspaces/supplierGET /workspaces/investor
Supabase URL, anon key, and service-role key belong in VerityAPI only. Do not expose Supabase credentials through Vite browser environment variables.
npm run dev
npm run lint
npm test
npm run buildThe smoke suite always validates public routing and unauthenticated portal redirects. Authenticated portal smoke requires seeded VerityAPI users supplied through environment variables:
VERITY_SMOKE_SUPPLIER_EMAILVERITY_SMOKE_BUYER_EMAILVERITY_SMOKE_INVESTOR_EMAILVERITY_SMOKE_PASSWORD
npx playwright install chromium
npm run smoke:testHTML report output:
playwright-report/smoke