3.1 Start Postgres
Run Postgres in a container, with a database for Shopfront:
docker run -d --name shopfront-postgres -p 5432:5432 \
-e POSTGRES_PASSWORD=shopfront -e POSTGRES_DB=shopfront postgres:17Shopfront reads its connection string from configuration. Replace appsettings.json:
{
"ConnectionStrings": {
"Shopfront": "Host=localhost;Database=shopfront;Username=postgres;Password=shopfront"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Trax.Effect.JunctionProvider.Logging.Services.JunctionLoggerProvider.JunctionLoggerProvider": "Debug"
}
},
"AllowedHosts": "*"
}SDK Reference
UsePostgres | SaveTrainParameters | AddJunctionLogger | TraxSensitive | IFailureClassifier | Metadata
Next: 3.2 Packages