Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docs

Please see the Github Pages Site for complete documentation: quarkuscoffeeshop.github.io

About

This repo contains the kitchen microservice which is responsible for making drinks. The kitchen microservice listens on a Kafka topic for incoming orders, applies the business logic for making an order, and then sends an update on another Kafka topic.

This project uses Quarkus, the Supersonic Subatomic Java Framework. If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .

Local deveplomnent steps

This project requires Kafka. The quarkuscoffeeshop-support project contains a Docker compose file that will start Kafka.

https://github.com/quarkuscoffeeshop/quarkuscoffeeshop-support.git
https://github.com/quarkuscoffeeshop/quarkuscoffeeshop-kitchen.git

From inside the quarkuscoffeeshop-support folder run:

docker compose up

From inside the quarkuscoffeeshop-kitchen folder run:

./mvnw quarkus:dev

Packaging the application

The application is packageable using ./mvnw package. It produces the executable quarkuscoffeeshop-kitchen-1.0-SNAPSHOT-runner.jar file in /target directory. Be aware that it’s not an über-jar as the dependencies are copied into the target/lib directory.

The application is now runnable using java -jar target/quarkuscoffeeshop-kitchen-1.0-SNAPSHOT-runner.jar.

Creating a native executable

You can create a native executable using: ./mvnw package -Pnative.

Or you can use Docker to build the native executable using: ./mvnw package -Pnative -Dquarkus.native.container-build=true.

You can then execute your binary: ./target/quarkuscoffeeshop-kitchen-1.0-SNAPSHOT-runner

If you want to learn more about building native executables, please consult https://quarkus.io/guides/building-native-image-guide .

Running with Docker

Quarkus' configuration can be environment specific: https://quarkus.io/guides/config

docker run -i --network="host" quarkuscoffeeshop-kitchen/quarkus-cafe-kitchen:latest

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages