GraalVM and quarkus PoC
Server based on quarkus, includes websocket server and http server.
ws://server-ip:8080/chat
- websocket endpoint
http://server-ip:8080/chat/channels
- available channels
Building server requires chat-api
. Go to chat-server
directory and execute:
mvn package -Dnative
after compilation application can be run with:
./target/chat-server-0.0.1-SNAPSHOT-runner
JavaFX client for chat, which compiles to native image thanks to GluonFX plugin.
To compile and run native image:
- Build parent module with
mvn clean install
- Go to
chat-client
module - Build native image with
mvn gluonfx:build
- Run
./target/gluonfx/x86_64-linux/chat-client
In order to compile and run in IDE, do the following steps:
- Go to https://gluonhq.com/products/javafx/
- Download JavaFX for you operating system
- Unpack JavaFX SDK
- Add it as a library to your IDE (in IntelliJ: File -> Project Structure -> Global libraries -> Add)
- Add VM options in run configuration:
--module-path="<path-to-javafx>/lib" --add-modules="javafx.base,javafx.controls"