Repository navigation
Add multi-language samples to AppHost page - #231
Conversation
Co-authored-by: IEvangelist <[email protected]>
Co-authored-by: IEvangelist <[email protected]>
|
This is a great start - but for the mermaid diagrams, let's update those to as well. Add tabs around them for each language, and then change the logos accordingly, is should simply be replacing |
|
Hey Copilot, please address my feedback. |
There was a problem hiding this comment.
Pull request overview
This PR enhances the AppHost page by adding multi-language samples that demonstrate Aspire's capability to orchestrate applications across different programming languages. Previously, only C# examples were shown.
- Introduces tabbed interface showing .NET, Python, and Node.js orchestration scenarios
- Maintains consistent three-tier architecture (PostgreSQL → API → Frontend) across all examples
- Uses language-appropriate methods (
AddProject,AddUvicornApp,AddNodeApp) for each scenario
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: IEvangelist <[email protected]>
Added tabbed mermaid diagrams with language-specific logos in commit ddd2a9a. Both architecture diagrams now sync with the code sample tabs using Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: Copilot <[email protected]>
|
Hey Copilot, under each tab explain the architecture of the diagrams. Then for the code explain how it's model, the relationships/dependencies, etc. Make it obvious the changing the tab changes the API, but regardless we're demonstrating a PostgreSQL database and a React frontend. Provide deep links back to first-app passing the |
…irst-app Co-authored-by: IEvangelist <[email protected]>
Done in commit 70b8e0d. Changes include:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
I think you misunderstood me Copilot, I want you to re-add the JavaScript tabs. I was saying that you didn't need to link out to the |
Co-authored-by: IEvangelist <[email protected]>
Re-added the Node.js/JavaScript tabs in commit 9a9ed73. All three tabs now show:
Each tab explains the architecture and how it connects to PostgreSQL and the React frontend. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: IEvangelist <[email protected]>
Fixed in commit 1606ea9. The "Adding an API resource and declaring a dependency" description is now wrapped in
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
Come to think of it Copilot, let's add Go and Java pivots as well. And add callouts to the community toolkit NuGet packages, and site relative links to |
…n links Co-authored-by: IEvangelist <[email protected]>
Done in commit 1324ae8. Added Go and Java pivots with:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
Hey Copilot, can we make each language's code be the same number of lines to ensure that our mark/collapse callouts are consistent across pivots? Also, anything we could do about the well of text here: .NET API: Uses AddProject<Projects.Api>() to reference a .NET project
Python API: Uses AddUvicornApp() with WithUv() for ASGI apps like FastAPI
Node.js API: Uses AddNodeApp() with WithNpm() for Node.js applications
Go API: Uses AddGolangApp() for Go applications
Java API: Uses AddSpringApp() for Spring Boot applicationsLet's put these behind a pivot to not confuse the reader. |
…d pivots Co-authored-by: IEvangelist <[email protected]>
Done in commit 75bcc54. Changes:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
How about we remove the pivots from the SimpleAppHost and add a props for the lang, then we can pivot around it in the consuming .mdx and pass the correct marks/collapse values. Copilot |
…ing MDX Co-authored-by: IEvangelist <[email protected]>
Done in commit 55e068c. Refactored
The consuming MDX now wraps each <Pivot id="csharp">
<SimpleAppHostCode lang="csharp" mark={{ range: '9-11' }} collapse={['1-6', '13-17']} />
</Pivot>
<Pivot id="python">
<SimpleAppHostCode lang="python" mark={{ range: '9-12' }} collapse={['1-6', '14-18']} />
</Pivot>Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
Hey Copilot, please update the details around 'Select your programming language` as Node.js isn't really a programming language. Should we maybe say something like programming language or API runtime? Have a go at it. |
Co-authored-by: IEvangelist <[email protected]>
Changed to "Select your API platform" in commit 02339d3. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|








?lang=csharpand?lang=pythonquery stringslangprop, move pivots to consuming MDXChanges
Updated
app-host.mdxPivotSelector title from "Select your programming language" to "Select your API platform" since Node.js is a runtime, not a programming language.Screenshot
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.