This sample demonstrates integrating a Node.js app and an ASP.NET Core HTTP API using Aspire.
The sample consists of two apps:
- 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 ASP.NET Core HTTP API that returns randomly generated weather forecast data.
- Aspire development environment
- Node.js - at least version 22.21.1
- .NET 10 SDK
If using the Aspire CLI, run aspire run from this directory.
If using VS Code, open this directory as a workspace and launch the AspireWithNode.AppHost project using either the Aspire or C# debuggers.
If using Visual Studio, open the solution file AspireWithNode.slnx and launch/debug the AspireWithNode.AppHost project.
If using the .NET CLI, run dotnet run from the AspireWithNode.AppHost directory.