Getting started
Prerequisites
- .NET 10 SDK (
global.jsonpins 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 endpoint | src/Integrations.Api/Endpoints/*Endpoints.cs (minimal APIs; give every route .WithSummary) |
| Change business behaviour | src/Integrations.Application/<Area>/*Service.cs |
| Add a field to a request or event | src/Integrations.Contracts (XML doc it, then update the snapshot and the event page) |
| Change the schema | src/Integrations.Domain + Infrastructure/Persistence/Configurations, then a migration |
| Change how AvaTax is called | src/Integrations.Providers.AvaTax (AvaTaxMapper, AvaTaxTaxProvider) |
| Add a background job | Implement 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.