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#
| Folder | Stack | Install | Development | URL | API base |
|---|---|---|---|---|---|
clients/vue-admin | Vue 3 + PrimeVue + Vite | npm install | npm run dev | http://localhost:5174 | src/config/modules.ts |
clients/angular-admin | Angular 19 + PrimeNG | npm install | npm start | http://localhost:4200 | src/environments/environment.ts |
clients/react-admin | React 19 + PrimeReact + Vite | npm install | npm run dev | http://localhost:5173 | src/config/modules.ts |
clients/blazor-admin | Blazor WebAssembly + Radzen | dotnet restore | dotnet run --project ./clients/blazor-admin/Blazor.Admin.csproj | see console | Services/ApiClient.cs |
clients/blazor-admin-server | ASP.NET Core host for the WASM app | dotnet restore | dotnet run --project ./clients/blazor-admin-server/Blazor.Admin.Server.csproj | https://localhost:7003 | proxied 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 attachesAuthorization: Bearer <token>to every request. Logout calls/api/v1/auth/logoutso 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
PaginatedResultresponses 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
localStorageunderdevarch.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 buildAngular β 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 buildUiPreparation/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 lintBlazor β 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.csprojUiPreparation samples#
| Project | Notes |
|---|---|
UiPreparation/UI | Legacy Angular Material dashboard. Requires Node β₯ 20.11.1 and npm β₯ 10.5.0. |
UiPreparation/FlutterUi/flutter_devarchitecture | Flutter sample (Bloc, Firebase). Run with flutter pub get then flutter run. |
Both are samples and receive no new features.