Site icon Android Tutorial Online

A demo/example project for the imaginary restaurant and order management

fmodel-spring-demo (EventSourcing)

A demo/example project for the imaginary restaurant and order management.

 this bleuprint is an outcome of the event-modeling process

Fmodel

This project is using Fmodel – Kotlin, multiplatform library.

Fmodel is:

Check the tests!

with(orderDecider) {
    givenEvents(listOf(orderCreatedEvent)) {         // PRE CONDITIONS
        whenCommand(createOrderCommand)              // ACTION
    } thenEvents listOf(orderRejectedEvent)          // POST CONDITIONS
}

Fstore-SQL

This project is using PostgreSQL powered event store, optimized for event sourcing and event streaming.

Fstore-SQL is enabling event-sourcing and pool-based event-streaming patterns by using SQL (PostgreSQL) only.

Tools

Patterns

Prerequisites

Technology

Run & Test

This project is using Gradle as a build and automation tool.

Test:

./gradlew check

Run:

Make sure you have PostgreSQL installed and running. Check the connection URL and username/password in application.properties

./gradlew bootRun

Run in Docker

Make sure you have Docker installed and running.

Build OCI (docker) image:

./gradlew bootBuildImage

Run application and PostgreSQL:

docker-compose up

Further Reading


Excited to launch your next IT project with us? Let’s get started! Reach out to our team at info@fraktalio.com to begin the journey to success.

GitHub

View Github

Exit mobile version