Skip to content

Commit 5bb352a

Browse files
committed
Update README instruction
1 parent 2633952 commit 5bb352a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For the tutorials check the links below,
99

1010
## How to run
1111

12-
First start the docker-compose which contains ZooKeeper, Kafka, and Kafdrop.
12+
First start the docker-compose which contains ZooKeeper, Kafka, Kafdrop, and MySQL.
1313

1414
```bash
1515
$ docker-compose -f docker-compose.yml up -d
@@ -23,7 +23,13 @@ $ ./mvnw spring-boot:run
2323

2424
Open the browser `localhost:8080/apidocs`.
2525

26-
You can interact with the `random` api to create a random user which then will be sent to Kafka and consumed by the consumer (see [`consumer/UserKafkaListener.java`](https://github.com/kasramp/spring-kafka-test/blob/master/src/main/java/com/madadipouya/springkafkatest/consumer/UserKafkaListener.java) file).
26+
You can interact with the `random` API to create a random user which then will be sent to Kafka and consumed by the consumer (see [`consumer/UserKafkaListener.java`](https://github.com/kasramp/spring-kafka-test/blob/master/src/main/java/com/madadipouya/springkafkatest/consumer/UserKafkaListener.java) file) and finally saves into the database.
2727

2828
To see whether the message has been sent to Kafka, open your browser `http://localhost:8085/topic/com.madadipouya.kafka.use` (Kafdrop environment),
29-
you should be able to see all messages that sent to `kafka.user` topic.
29+
you should be able to see all messages that sent to `kafka.user` topic.
30+
31+
To run Flyway migration scripts only run,
32+
33+
```bash
34+
$ ./mvnw flyway:migrate
35+
```

0 commit comments

Comments
 (0)