Frontend web client for Ombr, built with React, TypeScript, and Vite.
- Node.js 20+
- npm 10+
npm installnpm run devnpm run buildnpm run previewnpm run lintsrc/: App source code (components, styling, entry points)public/: Static assets and web manifestindex.html: App HTML templatevite.config.ts: Vite configtsconfig*.json: TypeScript configeslint.config.js: ESLint config
The client exposes a typed API wrapper in src/lib/api, backed by shared types and utilities in common/.
- Use
api.auth.login(...),api.auth.register(...), andapi.auth.logout()for session flows. - Use
api.users.*,api.devices.*,api.punishments.*,api.staff.*, andapi.market.purchase(...)for higher-level app actions. - Set
VITE_API_BASE_URLif the HTTP server is not reachable through the default/apipath.