> **Source:** [aspire-with-node](https://github.com/microsoft/aspire-samples/tree/main/samples/aspire-with-node)
> **AppHost:** C# AppHost
> **Tags:** csharp, javascript, node, redis

# Integrating a Node.js app within an Aspire application

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.

## Prerequisites

- [Aspire development environment](https://aspire.dev/get-started/prerequisites/)
- [Node.js](https://nodejs.org) - at least version 22.21.1
- [.NET 10 SDK](https://dotnet.microsoft.com/download/dotnet/10.0)

## Running the app

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.
