| languages |
|
||
|---|---|---|---|
| products |
|
||
| page_type | sample | ||
| name | .NET Aspire with Angular, React, and Vue | ||
| urlFragment | aspire-angular-react-vue | ||
| description | An example of how to integrate several Node.js apps into a .NET Aspire app. |
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.
- .NET 8 SDK
- Docker Desktop
- Node.js - at least version 20.7.0
- Optional Visual Studio 2022 17.12
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.
Once the app is running, the .NET Aspire dashboard will launch in your browser:
From the dashboard, you can navigate to the Angular, React, and Vue apps:
Angular
React
Vue



