Start kafka with zookeper, refer to kafka quickstart
refer to Kafka Binder Properties
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic msg_output
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic msg_output --from-beginning
Test message
mvn clean install -DskipTests=true
cd server
mvn spring-boot:run -Dserver.port=8081 -Dinstance.conf=file:conf/server.default.properties -Dlog4j.configuration=file:conf/log4j.properties
spring.datasource.url=jdbc:postgresql://localhost:5432/messages
spring.datasource.username=postgres
spring.datasource.password=postgres
cd client
mvn spring-boot:run -Dinstance.conf=file:src/main/resources/application.properties -Dlog4j.configuration=file:conf/log4j.properties
curl -H "Content-Type: application/json" -X POST -d '[{"title":"Hello","text":"Hello World!","author":"User","created":"2017-10-17"}]' http://localhost:8081/api/v1/messages
{"status":"SUCCESS","statusCode":0,"successful":true}