2026-03-19 17:42:17 +01:00
|
|
|
# Cameleer3 UI
|
2026-03-14 15:33:37 +01:00
|
|
|
|
2026-03-19 17:42:17 +01:00
|
|
|
React SPA built with [@cameleer/design-system](https://gitea.siegeln.net/cameleer/design-system), TanStack Query, and Zustand.
|
2026-03-14 15:33:37 +01:00
|
|
|
|
2026-03-19 17:42:17 +01:00
|
|
|
## Development
|
2026-03-14 15:33:37 +01:00
|
|
|
|
2026-03-19 17:42:17 +01:00
|
|
|
```bash
|
|
|
|
|
npm install
|
|
|
|
|
npm run dev
|
|
|
|
|
```
|
2026-03-14 15:33:37 +01:00
|
|
|
|
2026-03-19 17:42:17 +01:00
|
|
|
By default the dev server proxies `/api/*` to `http://localhost:8081`. To proxy to a remote server instead:
|
2026-03-14 15:33:37 +01:00
|
|
|
|
2026-03-19 17:42:17 +01:00
|
|
|
```bash
|
|
|
|
|
VITE_API_TARGET=http://192.168.50.86:30090 npm run dev
|
|
|
|
|
```
|
2026-03-14 15:33:37 +01:00
|
|
|
|
2026-03-19 17:42:17 +01:00
|
|
|
No CORS issues — Vite's proxy makes API calls server-side.
|
2026-03-14 15:33:37 +01:00
|
|
|
|
2026-03-19 17:42:17 +01:00
|
|
|
## Build
|
2026-03-14 15:33:37 +01:00
|
|
|
|
2026-03-19 17:42:17 +01:00
|
|
|
```bash
|
|
|
|
|
npm run build
|
2026-03-14 15:33:37 +01:00
|
|
|
```
|
|
|
|
|
|
2026-03-19 17:42:17 +01:00
|
|
|
## API Types
|
2026-03-14 15:33:37 +01:00
|
|
|
|
2026-03-19 17:42:17 +01:00
|
|
|
Regenerate TypeScript types from a running backend:
|
2026-03-14 15:33:37 +01:00
|
|
|
|
2026-03-19 17:42:17 +01:00
|
|
|
```bash
|
|
|
|
|
npm run generate-api:live
|
2026-03-14 15:33:37 +01:00
|
|
|
```
|