The DEalog Message Generator is a service that generates dummy messages for development purpose. It produces a message every 5 seconds and produces an event.
For more information please see the DEalog website.
The following section describes the development setup with all needed prerequisites needed to get the application up and running locally.
- Maven for building the project
- Apache Kafka
- OpenJDK >= 11.0.x to develop and deploy the application
- Docker for running the code
- Editor for coding
Start an Apache Kafka. You can use DEalog Kafka Development Cluster e.g. the (https://github.com/DEalog/dealog-kafka-dev-cluster)
You can run your application in dev mode that enables live coding using:
./mvnw quarkus:dev
The application can be packaged using ./mvnw package
.
It produces the dealog-message-generator-[VERSION]-runner.jar
file in the /target
directory.
Be aware that it’s not an über-jar as the dependencies are copied into the target/lib
directory.
The application is now runnable using java -jar target/dealog-message-generator-[VERSION]-runner.jar
.
You can create a native executable using: ./mvnw package -Pnative
.
Or, if you don't have GraalVM installed, you can run the native executable build in a container using: ./mvnw package -Pnative -Dquarkus.native.container-build=true
.
You can then execute your native executable with: ./target/dealog-message-generator-[VERSION]
If you want to learn more about building native executables, please consult https://quarkus.io/guides/building-native-image.
If you want to collaborate please follow this guide:
- Fork the repository
- Implement the feature, change or bugfix
- Add tests where it makes sense
- Update the CHANGELOG.md
- Create a pull request against the original repository
The DEalog Message service uses the following (main) technologies, frameworks and libraries: