Skip to content

Commit

Permalink
- Using specmatic http and specmatic-kafka Docker images instead of J…
Browse files Browse the repository at this point in the history
…ar files

- Removing specmatic-kafka-0.22.5-TRIAL-all.jar
  • Loading branch information
harikrishnan83 committed Jul 31, 2024
1 parent 4a99c07 commit fa089a0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,24 @@ This will start the specmatic stub server for domain api and kafka mock using th
```

# Break down each component to understand what is happening

### Prerequisites

1. Docker Desktop
2. Java and Gradle

### Start the dependent components
1. Download Specmatic Jar from [github](https://github.com/znsio/specmatic/releases)

2. Start domain api stub server
1. Start domain api stub server

```shell
java -jar specmatic.jar stub --port=8090
docker run -v "$PWD/specmatic.yaml:/specmatic.yaml" -p 8090:9000 znsio/specmatic stub --config "/specmatic.yaml"
```

3. Start Kafka stub server
2. Start Kafka stub server

```shell
java -jar lib/specmatic-kafka-0.22.5-TRIAL-all.jar --specification=.specmatic/repos/specmatic-order-contracts/io/specmatic/examples/store/asyncapi/kafka.yaml
docker run -p 9092:9092 -p 2181:2181 -v $(pwd)/specmatic.yaml:/usr/src/app/specmatic.yaml znsio/specmatic-kafka-trial
```

## Start BFF Server
Expand All @@ -62,3 +68,5 @@ You result should look like:
```json
[{"id":698,"name":"NUBYR","type":"book","inventory":278}]
```

Also observe the logs in the Specmatic HTTP Stub Server and Specmatic Kafka Mock Server.
3 changes: 0 additions & 3 deletions lib/specmatic-kafka-0.22.5-TRIAL-all.jar

This file was deleted.

0 comments on commit fa089a0

Please sign in to comment.