Skip to content

codebytes/aspire-polyglot

Repository files navigation

Polyglot Aspire

Polyglot samples for Aspire — demonstrating service orchestration across Python, JavaScript/Vite, Go, Java, C#, and mixed-language applications.

Slides

The hosted slides for the related talk can be found at:
https://chris-ayers.com/aspire-polyglot/

The source deck for this presentation lives in slides/ and is built with Marp.

Quick Start: cd samples/<sample> && aspire run

Prerequisites: Aspire CLI, Docker

Samples

Single-file AppHost ⭐

The whole dev-time orchestrator is a single file — no AppHost project, no Program.cs.

Sample AppHost Description
dotnet-react-postgres apphost.cs C# single-file AppHost — ASP.NET Core Minimal API + PostgreSQL + Vite React quotes board
hono-redis-urls apphost.ts TypeScript single-file AppHost — Hono API + Redis + Vite URL shortener

Containers, Compose & publishing

Single-file AppHosts focused on Docker images, aspire publish, and polyglot services.

Sample AppHost Description
postgres-adminer apphost.cs C# — adds two public Docker images directly (PostgreSQL + Adminer) with AddContainer; no Dockerfiles
go-redis-compose apphost.cs C# + Goaspire publish generates a runnable docker-compose.yaml (Go hit-counter API + Redis)
python-fastapi-docker apphost.cs C# + Python — FastAPI runs natively (uvicorn) in dev; aspire publish auto-generates its Dockerfile
java-javalin-redis apphost.cs C# + Java — Javalin leaderboard API (multi-stage Maven build) + Redis via AddDockerfile

JavaScript / Vite

Sample AppHost Description
vite-react-api apphost.ts Vite + React + FastAPI + Redis — TODO app with caching

C# / .NET

Sample AppHost Description
dotnet-angular-cosmos AppHost/ ASP.NET Core + Angular 19 + CosmosDB emulator — recipe manager

Mixed / Polyglot

Sample AppHost Description
polyglot-event-stream AppHost/ C# producer + Python consumer + Node.js dashboard + Kafka — IoT sensor streaming

Preview

Experimental polyglot AppHosts (Python, Go, Java) live under samples/preview/. They rely on Aspire's preview polyglot AppHost support and may change as those languages stabilize.

Sample AppHost Description
flask-markdown-wiki apphost.py Flask + SQLite — Markdown wiki with create/edit/render pages
django-htmx-polls apphost.py Django + HTMX — interactive voting polls with real-time bar charts
svelte-go-bookmarks apphost.go Svelte SPA + Go API via AddDockerfile — bookmark manager with tagging
spring-boot-postgres AppHost.java Spring Boot + PostgreSQL + pgAdmin — notes REST API via AddDockerfile

Learn More

About

No description, website, or topics provided.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages