Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 995 Bytes

File metadata and controls

37 lines (21 loc) · 995 Bytes

CommunityToolkit.Aspire.Hosting.Meilisearch library

Provides extension methods and resource definitions for the Aspire AppHost to support running Meilisearch containers.

Getting Started

Install the package

In your AppHost project, install the package using the following command:

dotnet add package CommunityToolkit.Aspire.Hosting.Meilisearch

Example usage

Then, in the Program.cs file of AppHost, add a Meilisearch resource and consume the connection using the following methods:

var builder = DistributedApplication.CreateBuilder(args);

var meilisearch = builder.AddMeilisearch("meilisearch");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(meilisearch);

builder.Build().Run();

Additional Information

https://learn.microsoft.com/dotnet/aspire/community-toolkit/hosting-meilisearch

Feedback & contributing

https://github.com/CommunityToolkit/Aspire