Skip to content

Latest commit

 

History

History

AspireWithJavaScript

languages products page_type name urlFragment description
csharp
javascript
dotnet
dotnet-aspire
sample
.NET Aspire with Angular, React, and Vue
aspire-angular-react-vue
An example of how to integrate several Node.js apps into a .NET Aspire app.

Integrating Angular, React, and Vue with .NET Aspire

This sample demonstrates an approach for integrating several Node.js apps into a .NET Aspire application.

The app consists of four services:

  • AspireJavaScript.MinimalApi: This is an HTTP API that returns randomly generated weather forecast data.
  • AspireJavaScript.Angular: This is an Angular app that consumes the weather forecast API and displays the data in a table.
  • AspireJavaScript.React: This is a React app that consumes the weather forecast API and displays the data in a table.
  • AspireJavaScript.Vue: This is a Vue app that consumes the weather forecast API and displays the data in a table.

Pre-requisites

Running the app

If using Visual Studio, open the solution file AspireJavaScript.sln and launch/debug the AspireJavaScript.AppHost project.

If using the .NET CLI, run dotnet run from the AspireJavaScript.AppHost directory.

Experiencing the app

Once the app is running, the .NET Aspire dashboard will launch in your browser:

.NET Aspire dashboard

From the dashboard, you can navigate to the Angular, React, and Vue apps:

Angular

Angular app

React

React app

Vue

Vue app