Starter for trying the .NET guides (Repository, Caching, MediatR).
# Create a minimal API and add packages
mkdir api-sandbox; cd api-sandbox
dotnet new web
dotnet add package MediatR
dotnet add package Microsoft.Extensions.Caching.StackExchangeRedis
# Replace Program.cs with snippets from the guides
notepad Program.cs
# Run
dotnet run