React 18 admin frontend for the Observer Manager API.
- Node.js 18+
- npm 9+
- Install dependencies:
npm install- Create
.env(optional):
VITE_API_BASE_URL=http://127.0.0.1:8000
VITE_API_USERNAME=admin
VITE_API_PASSWORD=supersecret
# Optional: enable external links in org detail
VITE_GRAFANA_BASE_URL=https://grafana.example.com
VITE_GLITCHTIP_BASE_URL=https://glitchtip.example.com- Run the app:
npm run dev- Uses HTTP Basic Auth.
- Credentials are stored in
localStorage(base64 encoded). - If no credentials are present, the login modal appears on first load.
- A 401 response clears credentials and re-opens the modal.
npm run dev- start Vite dev servernpm run build- production buildnpm run preview- preview production buildnpm run lint- lint the codebase