Skip to content

Latest commit

 

History

History

AspireWithNode

languages products page_type name urlFragment description
csharp
javascript
dotnet
dotnet-aspire
sample
.NET Aspire Node.js App sample
aspire-nodejs
An example of how to integrate a Node.js app into a .NET Aspire app.

Integrating a Node.js app within a .NET Aspire application

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

The app consists of two services:

  • NodeFrontend: This is a simple Express-based Node.js app that renders a table of weather forecasts retrieved from a backend API and utilizes a Redis cache.
  • AspireWithNode.AspNetCoreApi: This is an HTTP API that returns randomly generated weather forecast data.

Pre-requisites

Running the app

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

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