Changeset 8:036e0f1b9b10

Updated docs and headers
author unexist
date Thu, 11 Feb 2021 17:08:16 +0100
parents 6d4d4d6b7cbd
children 14e13864b967
files Makefile README.md src/main/java/dev/unexist/showcase/todo/application/RestApplication.java src/main/java/dev/unexist/showcase/todo/domain/todo/DueDate.java src/main/java/dev/unexist/showcase/todo/domain/todo/Todo.java src/main/java/dev/unexist/showcase/todo/domain/todo/TodoBase.java src/main/resources/application.properties
diffstat 7 files changed, 24 insertions(+), 51 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Feb 11 17:07:40 2021 +0100
+++ b/Makefile	Thu Feb 11 17:08:16 2021 +0100
@@ -9,30 +9,5 @@
 run: clean
 	mvn quarkus:dev
 
-jib: clean
-	mvn package -Dquarkus.container-image.build=true
-
-docker: clean
-	mvn package -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
-
-manifest:
-	@csplit -k --suppress-matched -z --prefix=MANIFEST target/kubernetes/kubernetes.yml "/^---$$/" "{*}"
-
-	@mv -f MANIFEST00 deployment/helm/quarkus/templates/service.yaml
-	@mv -f MANIFEST01 deployment/helm/quarkus/templates/deployment.yaml
-
-helm: jib manifest
-	mvn helm:package
-
-.PHONY: docs
-docs:
-	mvn -f docs/pom.xml generate-resources
-
-	@echo
-	@echo "******************************************************"
-	@echo "*                                                    *"
-	@echo "* Documentation can be found here:                   *"
-	@echo "* docs/target/generated-docs/1.0-SNAPSHOT/index.html *"
-	@echo "*                                                    *"
-	@echo "******************************************************"
-	@echo
+docker:
+	docker-compose -f src/main/docker/docker-compose.yml up
--- a/README.md	Thu Feb 11 17:07:40 2021 +0100
+++ b/README.md	Thu Feb 11 17:08:16 2021 +0100
@@ -1,30 +1,19 @@
 # quarkus-messaging-showcase project
 
-This project uses Quarkus, the Supersonic Subatomic Java Framework.
+This is a small showcase for various types of messaging.
 
-If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .
-
-## Running the application in dev mode
+## Kafka
 
-You can run your application in dev mode that enables live coding using:
-```
-./mvnw quarkus:dev
-```
+https://developers.redhat.com/blog/2018/05/31/introducing-the-kafka-cdi-library/
 
-## Packaging and running the application
+### Cloudevents
 
-The application can be packaged using `./mvnw package`.
-It produces the `quarkus-messaging-showcase-0.1-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 cloudevent messaging is based on this:
 
-The application is now runnable using `java -jar target/quarkus-messaging-showcase-0.1-runner.jar`.
-
-## Creating a native executable
+https://github.com/cloudevents/sdk-java/tree/master/examples/kafka/src/main/java/io/cloudevents/examples/kafka
 
-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`.
+### Smallrye
 
-You can then execute your native executable with: `./target/quarkus-messaging-showcase-0.1-runner`
+And the smallrye part is based on:
 
-If you want to learn more about building native executables, please consult https://quarkus.io/guides/building-native-image.
+https://quarkus.io/blog/kafka-cloud-events/
--- a/src/main/java/dev/unexist/showcase/todo/application/RestApplication.java	Thu Feb 11 17:07:40 2021 +0100
+++ b/src/main/java/dev/unexist/showcase/todo/application/RestApplication.java	Thu Feb 11 17:08:16 2021 +0100
@@ -2,7 +2,7 @@
  * @package Quarkus-Messaging-Showcase
  *
  * @file Todo application
- * @copyright 2020-2021 Christoph Kappel <christoph@unexist.dev>
+ * @copyright 2020 Christoph Kappel <christoph@unexist.dev>
  * @version $Id$
  *
  * This program can be distributed under the terms of the GNU GPLv2.
--- a/src/main/java/dev/unexist/showcase/todo/domain/todo/DueDate.java	Thu Feb 11 17:07:40 2021 +0100
+++ b/src/main/java/dev/unexist/showcase/todo/domain/todo/DueDate.java	Thu Feb 11 17:08:16 2021 +0100
@@ -2,7 +2,7 @@
  * @package Quarkus-Messaging-Showcase
  *
  * @file DueDate class
- * @copyright 2020-2021 Christoph Kappel <christoph@unexist.dev>
+ * @copyright 2020 Christoph Kappel <christoph@unexist.dev>
  * @version $Id$
  *
  * This program can be distributed under the terms of the GNU GPLv2.
--- a/src/main/java/dev/unexist/showcase/todo/domain/todo/Todo.java	Thu Feb 11 17:07:40 2021 +0100
+++ b/src/main/java/dev/unexist/showcase/todo/domain/todo/Todo.java	Thu Feb 11 17:08:16 2021 +0100
@@ -2,7 +2,7 @@
  * @package Quarkus-Messaging-Showcase
  *
  * @file Todo class and aggregate root
- * @copyright 2020-2021 Christoph Kappel <christoph@unexist.dev>
+ * @copyright 2020 Christoph Kappel <christoph@unexist.dev>
  * @version $Id$
  *
  * This program can be distributed under the terms of the GNU GPLv2.
--- a/src/main/java/dev/unexist/showcase/todo/domain/todo/TodoBase.java	Thu Feb 11 17:07:40 2021 +0100
+++ b/src/main/java/dev/unexist/showcase/todo/domain/todo/TodoBase.java	Thu Feb 11 17:08:16 2021 +0100
@@ -2,7 +2,7 @@
  * @package Quarkus-Messaging-Showcase
  *
  * @file Todo base class
- * @copyright 2020-2021 Christoph Kappel <christoph@unexist.dev>
+ * @copyright 2020 Christoph Kappel <christoph@unexist.dev>
  * @version $Id$
  *
  * This program can be distributed under the terms of the GNU GPLv2.
--- a/src/main/resources/application.properties	Thu Feb 11 17:07:40 2021 +0100
+++ b/src/main/resources/application.properties	Thu Feb 11 17:08:16 2021 +0100
@@ -15,3 +15,12 @@
 mp.openapi.extensions.smallrye.info.contact.url=https://unexist.dev
 mp.openapi.extensions.smallrye.info.license.name=GPLv2
 mp.openapi.extensions.smallrye.info.license.url=https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
+
+
+# Smylerye Messaging
+mp.messaging.incoming.todos-rye.connector=smallrye-kafka
+mp.messaging.outgoing.todos-rye.connector=smallrye-kafka
+mp.messaging.outgoing.todos-rye.topic=todos-rye
+
+# Kafka
+kafka.bootstrap.servers=localhost:9092
\ No newline at end of file