Giter Club home page Giter Club logo

hotel-demo's Introduction

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

  • Java 11

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
  • Create your account (you can select free Developer account option) https://cloud.axoniq.io/
  • Create booking and inventory contexts
  • Context
  • Create application bindings (make sure that booking application can access both contexts, booking and inventory)
  • Bindings
  • Copy the configuration settings into booking/../application-cloud.properties and inventory/../application-cloud.properties.
  • Check the Java configuration to make sure the context names are matching.
  • Run the booking application (cd booking): mvn spring-boot:run -Dspring-boot.run.profiles=cloud
  • Run the inventory application (cd inventory): mvn spring-boot:run -Dspring-boot.run.profiles=cloud
  • Connected Applications
  • Access the local booking application in the web browser http://localhost:8080/
  • Access the local inventory application in the web browser http://localhost:8081/

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 ❤️ by AxonIQ

hotel-demo's People

Contributors

dependabot[bot] avatar idugalic avatar codedrivenmitch avatar mgathier avatar smcvb avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.