/ldi-flight-booker

Temporary repository create for Micronaut workshops during ŁDI (16/11/2022)

Primary LanguageJava

Workshops ŁDI, 2022

Contact:

mail: zielinskimaciej at yahoo.com

Presentation:

https://prezi.com/i/xzhyrnr7hct9/

How to build application:

Note

Currently, tests requires up & running PostgreSQL and Kafka (docker compose files). It is shortcut for demo purposes, but in regular project we would start such components dynamically during tests executions (for example using TestContainers or database in memory)

./gradle clean build

How to start environment:

Kafka cluster

docker-compose -f docker/kafka-stack.yml up -d

URL for Topics

http://localhost:3030/kafka-topics-ui/

Postgres database (schema is created by application)

docker-compose -f docker/postgres-stack.yml up -d

Db Adminer:

Swagger-UI (when application is running):

How to build and start native-image application:

Build

./gradlew dockerBuildNative

Start

docker stack deploy -c docker/native-image.yml docker

Remove

docker stack rm docker

Application Diagrams:

Components

alt text

Flights

alt text

Reservations

alt text

Micronaut 3.7.3 Documentation:

I recommend Micronaut documentation. It is brilliant.