Skip to main content

Getting started

Prerequisites​

  • .NET 10 SDK (global.json pins the version)
  • Docker (Postgres and RabbitMQ locally; Testcontainers in the integration tests)
  • Node 22 (only for the handbook and the Playwright tests)

Run it​

docker compose up --build # Postgres, RabbitMQ and the service (simulated tax + FX) on :8080
# or against your own Postgres:
dotnet run --project src/Integrations.Api # http://localhost:5040/docs/

Get a development token (scopes are space-separated):

dotnet user-jwts create --project src/Integrations.Api --audience pvc-connect-integrations \
--scope "integrations:admin entities:all"

Then set up an entity and a mapping. The README has the curl calls, and the API reference lets you try every endpoint.

Find your way around​

You want to...Look in
Add or change an endpointsrc/Integrations.Api/Endpoints/*Endpoints.cs (minimal APIs; give every route .WithSummary)
Change business behavioursrc/Integrations.Application/<Area>/*Service.cs
Add a field to a request or eventsrc/Integrations.Contracts (XML doc it, then update the snapshot and the event page)
Change the schemasrc/Integrations.Domain + Infrastructure/Persistence/Configurations, then a migration
Change how AvaTax is calledsrc/Integrations.Providers.AvaTax (AvaTaxMapper, AvaTaxTaxProvider)
Add a background jobImplement IScheduledJob (name it ...Job) and register it in Program.cs

Before you open a PR​

dotnet build -c Release # warnings, including missing XML docs, are errors
dotnet test --project tests/Integrations.UnitTests # + architecture, contract and docs checks
dotnet test --project tests/Integrations.IntegrationTests # needs Docker
python3 build/docs/event-pages.py # if you touched a message contract
cd website && npm ci && npm run build # if you touched docs/ (broken links fail)

Then fill in the pull request checklist.