diff --git a/README.md b/README.md index 7457d91..d3490ef 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ - [Upgrade Nuget Packages](#upgrade-nuget-packages) - [How to Run](#how-to-run) - [Config Certificate](#config-certificate) + - [Aspire](#aspire) - [Docker Compose](#docker-compose) - [Kubernetes](#kubernetes) - [Build](#build) @@ -204,13 +205,24 @@ Run the following commands to [Config SSL](https://docs.microsoft.com/en-us/aspn dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p password dotnet dev-certs https --trust ``` -***Note:** for running this command in `powershell` use `$env:USERPROFILE` instead of `%USERPROFILE%`* +> Note: for running this command in `powershell` use `$env:USERPROFILE` instead of `%USERPROFILE%`* #### macOS or Linux ```bash dotnet dev-certs https -ep ${HOME}/.aspnet/https/aspnetapp.pfx -p $CREDENTIAL_PLACEHOLDER$ dotnet dev-certs https --trust ``` + +### Aspire + +To run the application using the `ASPIRE App Host`, execute the following command from the solution root: + +```bash +dotnet run --project ./src/Aspire/src/AppHost +``` + +> Note:The `ASPIRE dashboard` will be available at `http://localhost:18888` + > ### Docker Compose diff --git a/assets/booking-microservices.drawio b/assets/booking-microservices.drawio index e764edb..8ae0d7a 100644 --- a/assets/booking-microservices.drawio +++ b/assets/booking-microservices.drawio @@ -1,11 +1,11 @@ - + - + - - + + @@ -462,6 +462,9 @@ + + + diff --git a/assets/booking-microservices.png b/assets/booking-microservices.png index 81e60ec..2273032 100644 Binary files a/assets/booking-microservices.png and b/assets/booking-microservices.png differ diff --git a/src/Aspire/src/AppHost/Properties/launchSettings.json b/src/Aspire/src/AppHost/Properties/launchSettings.json index 2d6c02b..e2da781 100644 --- a/src/Aspire/src/AppHost/Properties/launchSettings.json +++ b/src/Aspire/src/AppHost/Properties/launchSettings.json @@ -1,30 +1,18 @@ { "$schema": "http://json.schemastore.org/launchsettings.json", "profiles": { - "https": { + "AppHost": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, - "applicationUrl": "https://localhost:7000;http://localhost:7001", + "applicationUrl": "http://localhost:18888", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development", "DOTNET_ENVIRONMENT": "Development", + "ASPIRE_ALLOW_UNSECURED_TRANSPORT": "true", "ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "http://otel-collector:4317", "ASPIRE_DASHBOARD_OTLP_HTTP_ENDPOINT_URL": "http://otel-collector:4318" } - }, - "http": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, - "applicationUrl": "http://localhost:7001", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development", - "DOTNET_ENVIRONMENT": "Development", - "ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "http://otel-collector:4317", - "ASPIRE_DASHBOARD_OTLP_HTTP_ENDPOINT_URL": "http://otel-collector:4318", - "ASPIRE_ALLOW_UNSECURED_TRANSPORT": "true" - } } } }