An open API service indexing awesome lists of open source software.

https://github.com/fermyon/aspire.spin

Spin Integration for .NET Aspire
https://github.com/fermyon/aspire.spin

aspire aspire-hosting dotnet-aspire fermyon-spin spin

Last synced: 6 months ago
JSON representation

Spin Integration for .NET Aspire

Awesome Lists containing this project

README

          

# Fermyon.Aspire.Spin

`Fermyon.Aspire.Spin` adds support for [Spin](https://developer.fermyon.com/spin) to [.NET Aspire](https://learn.microsoft.com/en-us/dotnet/aspire/get-started/build-your-first-aspire-app).

The project is under active development, so no guarantees of stability or compatibility can be expected - but we still hope you think it's great!

## Installation

```bash
# Add Fermyon.Aspire.Spin to your .NET Aspire project
dotnet add package Fermyon.Aspire.Spin
```

### Basic Usage

`Fermyon.Aspire.Spin` contributes extensions to the `Aspire.Hosting` namespace. Adding an existing Spin App to your `DistributedApplicationBuilder` is as simple as calling `AddSpinApp`:

```csharp
var builder = DistributedApplication.CreateBuilder(args);

builder.AddSpinApp("api-one", "../api-one", 3001)
.WithOtlpExporter();
builder.Build().Run();
```

### Further Samples

Check out the [example](./example/) folder, it contains a basic sample illustrating how you can design a distributed application using multiple Spin Apps