Get started with the listmonk integration

이 콘텐츠는 아직 번역되지 않았습니다.

⭐ Community Toolkit

listmonk is a self-hosted newsletter and mailing-list manager. The Community Toolkit hosting integration adds its container to an Aspire AppHost and configures it to use a PostgreSQL database resource.

  • An Aspire AppHost project
  • A PostgreSQL resource for listmonk’s database

Install the 📦 CommunityToolkit.Aspire.Hosting.Listmonk package in the AppHost:

Terminal
aspire add CommunityToolkit.Aspire.Hosting.Listmonk

Add the container and reference a PostgreSQL database. The admin password is an Aspire secret parameter. See Set up listmonk in the AppHost for configuration and persistence options.

apphost.mts
import { createBuilder } from './.aspire/modules/aspire.mjs';
const builder = await createBuilder();
const password = await builder.addParameter('listmonk-admin-password', {
secret: true,
});
const postgres = await builder.addPostgres('postgres');
const database = await postgres.addDatabase('listmonkdb');
const listmonk = await builder.addListmonk('listmonk');
await listmonk.withReference(database);
await listmonk.withAdminCredentials('admin', password);
await listmonk.withUploadsVolume();
await builder.build().run();

The hosting integration does not include a listmonk client package. Reference the resource from an app that calls listmonk’s HTTP API, or use the dashboard to administer the instance.