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
- Host: GitHub
- URL: https://github.com/fermyon/aspire.spin
- Owner: fermyon
- Created: 2024-05-23T17:29:46.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-30T08:36:26.000Z (about 2 years ago)
- Last Synced: 2024-06-27T09:33:55.204Z (about 2 years ago)
- Topics: aspire, aspire-hosting, dotnet-aspire, fermyon-spin, spin
- Language: C#
- Homepage: https://developer.fermyon.com
- Size: 85.9 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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