Software Development Lead / Software Architect
@ ISD Feniqs
github.com/ryannninodizon
youtube.com/@LearnWithJon
facebook.com/learnwithjonjon
medium.com/@ryanninodizon
linkedin.com/in/ryanninodizon
sessionize.com/ryanninodizon
Image source: https://www.techtarget.com/searchcloudcomputing/definition/cloud-native-application
Image source: https://www.cncf.io/blog/2023/09/04/cloud-based-versus-cloud-native-whats-the-difference/
.NET Aspire is designed to improve the experience of building .NET cloud-native apps. It provides a consistent, opinionated set of tools and patterns that help you build and run distributed apps. .NET Aspire is designed to help you with:
//Check different .net workloads
dotnet workload list
//install dotnet workload
dotnet workload install aspire
//Update your Aspire worload
dotnet workload update
//Create project
dotnet new aspire-starter
--use-redis-cache --output AspireSample
//or empty Aspire project
dotnet new aspire AspireSample
//Run
dotnet run --project AspireSample/AspireSample.AppHost
└───📂 AspireSample
├───📂 AspireSample.ApiService
│ └─── Program.cs
├───📂 AspireSample.AppHost
│ └─── Program.cs
├───📂 AspireSample.ServiceDefaults
│ └─── Extensions.cs
├───📂 AspireSample.Web
│ ├───📂 Components
│ │ ├───📂 Layout
│ │ │ ....
│ ├─── AspireSample.Web.csproj
│ ├─── Program.cs
│ └─── WeatherApiClient.cs
└─── AspireSample.sln
.NET Aspire apps are designed to run in containerized environments. Azure Container Apps is a fully managed environment that enables you to run microservices and containerized applications on a serverless platform.
// Install Azure Developer CLI
winget install microsoft.azd
//Initialize azd deployment
azd init
//Login to Azure tenant
azd auth login
//azd provision and azd deploy will be executed
azd up
//Deploy changes
azd deploy
//Deploy specific projects
azd deploy webfrontend
https://discord.com/invite/h87kDAHQgJ