Skip to content

Conversation

IEvangelist
Copy link
Member

@IEvangelist IEvangelist commented Mar 11, 2025

Add full stack Node.js solution, this PR:

  • Demonstrates an end-to-end JavaScript solution, that's orchestrated by .NET Aspire.
  • Adds a simple app host project.
  • Adds an api express-based Node.js app that serves random weather forecast data (much like the ASP.NET Core Minimal API template).
  • Adds an app that's copied from the existing React bits in the JavaScript samples.

Contributes to dotnet/docs-aspire#2767

@Copilot Copilot AI review requested due to automatic review settings March 11, 2025 18:41
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces a full stack Node.js solution integrated with a .NET Aspire host to demonstrate an end-to-end JavaScript solution with a Node.js API and a React frontend.

  • Adds sample documentation describing the architecture and prerequisites.
  • Configures the .NET Aspire host to run both the Node.js API and React app.
  • Implements a simple Express API returning random weather forecast data and a corresponding React app that consumes it.

Reviewed Changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
samples/FullStackJS/README.md Documentation introducing the full stack solution and its usage
samples/FullStackJS/FullStackJS.AppHost/Program.cs Configuration of the .NET Aspire host and integration of Node apps
samples/FullStackJS/api/index.ts Express API serving random weather data
samples/FullStackJS/app/webpack.config.js Webpack configuration for the React app with proxy settings
samples/FullStackJS/app/src/index.js Entry point for the React app
samples/FullStackJS/app/src/components/App.js React component fetching and displaying weather forecast data

@IEvangelist IEvangelist marked this pull request as draft March 12, 2025 00:32
@@ -0,0 +1,22 @@
FROM node:23-alpine as build
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should look into optimizations we can do with node docker files. They are many.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants