This is a POC for using Kafka Streams as a backbone for an event sourced system.
You can either run the project with Docker Compose, or run everything on your host.
-
Install sbt (help)
-
Build the project:
$ sbt assembly
-
Update your host IP address in .env
-
Build images
$ docker-compose build
-
Start the containers
$ docker-compose up
-
Run Zookeeper / Kafka (help)
-
Run MySQL (help)
-
Install the schema
-
Create the topics (edit
config/local.properties
as needed):$ bin/setup.sh config/local.properties
-
Run the command handler:
$ bin/commandhandler.sh config/local.properties
-
Run the invoices list projector:
$ bin/projector.sh config/local.properties
-
Run the web server:
$ bin/web.sh config/local.properties
If everything worked, you should be able to see the app running at http://localhost:8080/index.html
Copyright © 2018 Amitay Horwitz
Distributed under the MIT License