For the demo, I set up a consumer and provider service with quarkus.
The consumer provides a rest api interface and, when called, it sends another request to the provider service.
The provider provides a rest api interface and, when called, it sends a response "Hello from your Provider!".
Clone this repository or follow the WORKSHOP to create the project from scratch.
provider ❯ ./mvnw quarkus:dev
Visit http://localhost:8080
consumer ❯ ./mvnw quarkus:dev
Visit http://localhost:9090
(If a provider is running, kill it to make sure that port 8080 is available)
consumer ❯ ./mvnw test
Pact contract is stored at: consumer/target/pacts
(If a provider is running, kill it to make sure that port 8080 is available)
provider ❯ ./mvnw test