How to add Angular project to .NET Aspire

Опубликовано: 29 Октябрь 2024
на канале: Authorised Territory
153
8

Authorised Territory code examples - This .NET Aspire #tutorial shows how to integrate Angular project with #dotnet Aspire.
The tutorial starts with a solution created in the video    • Integration testing with .NET Aspire ...  
First, we add new #angular project using Visual Studio template.
New TypeScript model and service are created. The service calls an endpoint in the WebAPI project to obtain the data.
Next, nuget package for Node integration is installed in the AppHost project and Angular project is integrated with .NET Aspire in Program.cs file.
Finally, the Angular website and the WebAPI are tested via the dashboard.