AxonIQ / hotel-demo

Hotel booking application - Demo - Axon Framework & Axon Server
Apache License 2.0
118 stars 44 forks source link

AxonIQ hotel demo

It's the implementation of the example used in this blog post: https://eventmodeling.org/posts/what-is-event-modeling/

Event modeling adopts Event Storming sticky notes. The final piece was the UI/UX aspects to complete what more resembles a movie story board (white board - or digital white board). While Event Storming focuses in discovering the problem space, Event Modeling creates a blueprint for a solution.

Download specification (Demo.pdf)

The Miro board is publicly available (view only) as well.

Prerequisites

Recommendations

Installing the Axon Framework IntelliJ plugin will help you visualize the application's publishers and handlers. You can easily install this by going to the Marketplace in your IntelliJ plugin settings.

Intellij Plugin Screenshot

Running the application(s) locally

Requirements

You can download a ZIP file with AxonServer as a standalone JAR. This will also give you the AxonServer CLI and information on how to run and configure the server.

Alternatively, you can run the following command to start AxonServer in a Docker container:

docker run -d --name axonserver -p 8024:8024 -p 8124:8124 axoniq/axonserver
mvn clean verify

Booking

cd booking/
mvn spring-boot:run

Inventory

cd inventory/
mvn spring-boot:run

Using AxonIQ Cloud

Running all on Kubernetes

Deployment on Kubernetes (CaaS) is documented in .k8s/Readme.md. It demonstrates the usage of Axon Server Standard Edition and Axon Server Enterprise Edition in a multi-context setup with access control enabled. If you want to actually run Axon Server Enterprise Edition you need a valid license file.


Created with :heart: by AxonIQ