Skip to content

Getting started

Scaffold

dotnet new install ConnectSoft.Saas.ProductsCatalogTemplate.Installer
dotnet new connectsoft-saas-productscatalog -n ConnectSoft.MyProductsCatalogService -o ./MyService

Use --recurse-submodules when working from source.

Build and run

cd MyService
dotnet build ConnectSoft.Saas.ProductsCatalogTemplate.slnx
dotnet run --project src/ConnectSoft.Saas.ProductsCatalog.Application

REST is at api/products-catalog (plus /features, /pricing-models, /business-models); gRPC exposes the five catalog services.

Try it

# create a product, add an edition, activate a feature
curl -X POST https://localhost:5001/api/products-catalog/products -H "X-Tenant-Id: <tenant>" -d '{ "slug": "pro", "name": "Pro" }'
curl -X POST https://localhost:5001/api/products-catalog/products/<id>/editions -d '{ "code": "standard", "name": "Standard" }'

Peer catalogs (features/pricing/business models) are seeded for list queries.

Next steps

See also