A canonical shopping cart sample application, built using Microsoft Orleans. This app shows the following features:
-
Shopping cart: A simple shopping cart application that uses Orleans for its cross-platform framework support, and its scalable distributed applications capabilities.
- Inventory management: Edit and/or create product inventory.
- Shop inventory: Explore purchasable products and add them to your cart.
- Cart: View a summary of all the items in your cart, and manage these items; either removing or changing the quantity of each item.
- .NET 6
- ASP.NET Core Blazor
- Orleans: Grain persistence
- Orleans: Cluster management
- Orleans: Code generation
- Orleans: Startup tasks
- Azure Bicep
- Azure Container Apps
- GitHub Actions and .NET
The app is architected as follows:
- A GitHub account
- The .NET 6 SDK or later
- The Azure CLI
- A .NET integrated development environment (IDE)
- Feel free to use the Visual Studio or the Visual Studio Code
git clone https://github.com/Azure-Samples/orleans-blazor-server-shopping-cart-on-container-apps.git orleans-on-app-service
cd orleans-blazor-server-shopping-cart-on-container-apps
dotnet run --project Silo\Orleans.ShoppingCart.Silo.csproj
The Orleans.ShoppingCart.Silo project uses the following open3rd party-source projects:
- MudBlazor: Blazor Component Library based on Material design.
- Bogus: A simple fake data generator for C#, F#, and VB.NET.
- Blazorators: Source-generated packages for Blazor JavaScript interop.
Derived from IEvangelist/orleans-on-container-apps.