Demo app using .NET Aspire and .NET 8
- .NET 8 SDK
- Aspire Preview 7
- Aspir8
- Docker
- Kubernetes(Minikube) Requires Aspir8
dotnet workload update
dotnet workload install aspire
dotnet tool install -g aspirate --prerelease
dotnet tool install -g dotnet-grpc
This project contains the following services
- Redis Cache
- gRPC Service
- Minimal API Service
- Blazor Web app
- Vue SPA
Uses shared proto files
cd CodemicAspireApp/CodemicAspireApp.GrpcService
dotnet-grpc add-file -s Server ../Shared/Protos/*.proto
cd CodemicAspireApp/CodemicAspireApp.ApiService
dotnet-grpc add-file -s Client ../Shared/Protos/*.proto
Run CodemicAspireApp.AppHost project to start the Aspire process.
These commands must be executed in the CodemicAspireApp.AppHost
directory
aspirate init
Using Docker Desktop and Minikube
eval $(minikube -p minikube docker-env)
aspirate build
append -ct TAG
for custom tags
aspirate generate -m manifest.json
append -ct TAG
for custom tags
aspirate apply
We need to expose the service from Kubernetes
kubectl port-forward service/apiservice 7080:8080
kubectl port-forward service/vue 8000:8000
kubectl port-forward service/webfrontend 8080:8080
kubectl port-forward service/aspire-dashboard 18888:18888
Vue app
http:/localhost:8000/
Blazor app
http:/localhost:8080/
Aspire Dashboard
http:/localhost:18888/