This commit is contained in:
Michael Schnell
2019-12-29 10:08:02 +01:00
parent e6a0fb75c4
commit e90e8e3d15

View File

@@ -4,61 +4,7 @@ Example applications that uses [Quarkus](https://quarkus.io/), [ddd-4-java](http
## Prerequisites
Make sure you installed everything as described [here](../).
## Run the command microservice in development mode
1. Open a console (Ubuntu shortcut = ctrl alt t)
2. Start the command microservice:
```
cd ddd-cqrs-4-java-example/quarkus/command
./mvnw quarkus:dev
```
3. Opening [http://localhost:8081/](http://localhost:8081/) should show the command welcome page
## Run the query microservice in development mode
1. Open a console (Ubuntu shortcut = ctrl alt t)
2. Start the query microservice:
```
cd ddd-cqrs-4-java-example/quarkus/query
./mvnw quarkus:dev
```
3. Opening [http://localhost:8080/](http://localhost:8080/) should show the query welcome page
# TODO ... (Does currently not work)
## *OPTIONAL* Build and run the command microservice in native mode
1. Make sure you have enough memory (~6-8 GB) on your PC or VM
2. Open a console (Ubuntu shortcut = <ctrl><alt><t>)
3. Build the native executable
```
cd command
./mvnw verify -Pnative
```
4. Run the microservice
```
./target/cqrs4j-quarkus-example-command-1.0-SNAPSHOT-runner \
-Djava.library.path=$GRAALVM_HOME/jre/lib/amd64 \
-Djavax.net.ssl.trustStore=$GRAALVM_HOME/jre/lib/security/cacerts
```
**Issues**
- [Quarkus native command microservice fails with Yasson NullPointerException](https://github.com/fuinorg/ddd-cqrs-4-java-example/issues/2)
## *OPTIONAL* Build and run the query microservice in native mode
1. Make sure you have enough memory (~6-8 GB) on your PC or VM
2. Open a console (Ubuntu shortcut = <ctrl><alt><t>)
3. Build the native executable
```
cd query
./mvnw verify -Pnative
```
4. Run the microservice
```
./target/cqrs4j-quarkus-example-query-1.0-SNAPSHOT-runner \
-Djava.library.path=$GRAALVM_HOME/jre/lib/amd64 \
-Djavax.net.ssl.trustStore=$GRAALVM_HOME/jre/lib/security/cacerts
```
**Issues**
- [Quarkus native query microservice does not execute updates](https://github.com/fuinorg/ddd-cqrs-4-java-example/issues/1)
- [Building native query microservice fails with PostgreSQL (MariaDB works fine)](https://github.com/fuinorg/ddd-cqrs-4-java-example/issues/3)
## Start command / query implementation
Start the command and query microservice.
- [Command](command)
- [Query](query)