Standalone React admin for alon_sentinel.
- Start Sentinel on
http://127.0.0.1:3000 - Provision an admin user with:
cargo run --bin provision_admin_user- Start the admin:
npm run devCreate alon_sentinel_admin/.env with:
VITE_SENTINEL_API_BASE_URL=http://127.0.0.1:3000The UI uses that env value as the default Sentinel API base URL, stores manual base-URL overrides in browser local storage, and keeps the issued admin session in browser session storage so it clears with the browser session.
The admin UI uses hash-based routing (react-router-dom with HashRouter), so routes are represented as /#/dashboard, /#/sites, and /#/access.
That keeps browser refreshes working even when the UI is hosted as plain static files, because the server only needs to serve index.html for /.