Skip to main content

Admin Clients

The WebAPI is consumed by four independent admin clients plus a Blazor Server host. They all talk to the same versioned API surface, so a feature available in one client is available to the others as long as the contract is respected.

Quick reference#

FolderStackInstallDevelopmentURLAPI base
clients/vue-adminVue 3 + PrimeVue + Vitenpm installnpm run devhttp://localhost:5174src/config/modules.ts
clients/angular-adminAngular 19 + PrimeNGnpm installnpm starthttp://localhost:4200src/environments/environment.ts
clients/react-adminReact 19 + PrimeReact + Vitenpm installnpm run devhttp://localhost:5173src/config/modules.ts
clients/blazor-adminBlazor WebAssembly + Radzendotnet restoredotnet run --project ./clients/blazor-admin/Blazor.Admin.csprojsee consoleServices/ApiClient.cs
clients/blazor-admin-serverASP.NET Core host for the WASM appdotnet restoredotnet run --project ./clients/blazor-admin-server/Blazor.Admin.Server.csprojhttps://localhost:7003proxied to the WASM app

All clients default to https://localhost:5101/api/v1. Start the API first (Running The Web API Project).

Shared behaviour#

  • Authentication: the login form posts to /api/v1/auth/login, stores the access token and refresh token, and attaches Authorization: Bearer <token> to every request. Logout calls /api/v1/auth/logout so the token is revoked server-side.
  • Token refresh: expiring tokens are renewed with /api/v1/auth/refresh-token; a failed refresh returns the user to the login page.
  • Pagination: list screens read PaginatedResult responses and fetch all pages where a complete list is needed (relation dialogs). See Pagination.
  • Theming: the Sakai-style shell uses an emerald primary / slate neutral palette. Vue, Angular and React persist dark mode in localStorage under devarch.darkMode.
  • Contracts: shared request/response shapes live in clients/contracts.

Vue β€” clients/vue-admin#

PrimeVue + Aura themed admin UI.

cd clients/vue-adminnpm installnpm run dev      # Vite, port 5174npm run build    # production build

Angular β€” clients/angular-admin#

PrimeNG + Aura themed admin UI; recommended for new Angular work.

cd clients/angular-adminnpm installnpm start          # ng serve --poll 1000, port 4200npm run build

UiPreparation/UI is the older Material Dashboard sample. Both use port 4200 by default, so do not run them at the same time (or pass --port).

React β€” clients/react-admin#

PrimeReact admin UI with Lara green light/dark themes.

cd clients/react-adminnpm installnpm run dev      # Vite, port 5173npm run buildnpm run lint

Blazor β€” clients/blazor-admin and clients/blazor-admin-server#

The WASM client uses Radzen components. If the browser struggles with the local WASM/HTTPS setup, run the server host instead: it serves the same application through ASP.NET Core.

dotnet run --project ./clients/blazor-admin/Blazor.Admin.csprojdotnet run --project ./clients/blazor-admin-server/Blazor.Admin.Server.csproj

UiPreparation samples#

ProjectNotes
UiPreparation/UILegacy Angular Material dashboard. Requires Node β‰₯ 20.11.1 and npm β‰₯ 10.5.0.
UiPreparation/FlutterUi/flutter_devarchitectureFlutter sample (Bloc, Firebase). Run with flutter pub get then flutter run.

Both are samples and receive no new features.