aspire-samples icon indicating copy to clipboard operation
aspire-samples copied to clipboard

Show composing a Python app into AppHost as a resource

Open DamianEdwards opened this issue 2 years ago • 1 comments

Scenario:

  • ASP.NET Core API frontend (e.g. Blazor SSR)
  • Python (e.g. FastAPI) backend
  • Frontend talks to the backend
  • Backend talks to a PostgreSQL database
  • Both apps should be composed into AppHost project so that service endpoint from backend is injected into environment of frontend
  • Backend should have connection string of database injected into environment variables

DamianEdwards avatar Oct 25 '23 01:10 DamianEdwards

+1 for this polyglot programming language combination model.

thangchung avatar Nov 17 '23 09:11 thangchung

@DamianEdwards Is this sample available now?

goldytech avatar Jun 21 '24 13:06 goldytech

@goldytech no we'll wait until dotnet/aspire#4142 goes in before adding this sample.

DamianEdwards avatar Jun 21 '24 15:06 DamianEdwards

@DamianEdwards Thanks for sharing this update. I'm looking forward to it in version 8.1!

goldytech avatar Jun 24 '24 05:06 goldytech