Capstone project for Microsoft's Full-Stack Integration course, built and optimized with Microsoft Copilot.
- Minimal API Back-End (
ServerProgram.cs):- Exposes
GET /api/productlist(plusPOST /api/productlistandDELETE /api/productlist/{id}) returning strongly-typed JSON with nestedCategoryobjects ({ id, name, price, stock, category: { id, name } }). - Configures CORS policy (
AllowBlazorClient) so Blazor WebAssembly can communicate seamlessly with the API. - Implements server-side
IMemoryCachecaching (60-second sliding expiration) to optimize throughput and eliminate redundant database/list hits.
- Exposes
- Blazor WebAssembly Front-End (
FetchProducts.razor,ClientProgram.cs,ProductModels.cs):- Consumes
/api/productlistasynchronously viaHttpClient+System.Text.Json. - Implements client-side in-memory product caching and cancellation/timeout error handling (
try/catchforHttpRequestException,TaskCanceledException,JsonException) with user-friendly fallback states. - Renders responsive product & category cards with
@keyoptimization.
- Consumes
- Copilot Integration & Reflection:
- Microsoft Copilot assisted in generating API integration code, debugging CORS & JSON property casing mismatches (
PropertyNameCaseInsensitive = true), structuring nested JSON models, and implementing caching optimizations.
- Microsoft Copilot assisted in generating API integration code, debugging CORS & JSON property casing mismatches (
dotnet run --project ServerApp.csproj
dotnet run --project ClientApp.csproj