Skip to content

melloware/quarkus-faces

Repository files navigation


License Discord Chat Java CI with Maven Quarkus GitHub Sponsors

If you like this project, please consider supporting me ❤️

GitHub Sponsor PayPal

Goals


The main goal was to take an out-of-the-box Faces (formerly JSF) application (PrimeFaces Showcase) and get it running in Quarkus and deployed as a GraalVM Native executable or an UberJar single executable JAR.

Application


See QuarkusFaces Showcase running live in GraalVM on a free cloud hosting using 0.1 VCPU and 512MB RAM. It is an underpowered machine, but it gets the point across.

Optimizations


jQuery Hide Page Until Complete

Development


To run the example in Dev mode:

git clone https://github.com/melloware/quarkus-faces
cd quarkus-faces
mvn quarkus:dev

Then open your web browser to http://localhost:8000/

Production Uber-Jar


To run the example in HotSpot Production mode Uber-Jar:

git clone https://github.com/melloware/quarkus-faces
cd quarkus-faces
mvn clean package -Dquarkus.package.jar.type=uber-jar
java -jar target/quarkus-faces-runner.jar

Then open your web browser to http://localhost:8000/

Docker JVM


Builds a Docker image running as a standard JVM application.

mvn clean package -Ddocker
docker run -i --rm -p 8000:8000 melloware/quarkus-faces:latest

Docker Native


Builds a native Docker image running as a GraalVM (Mandrel) application.

mvn -Pnative-docker
docker run -i --rm -p 8000:8000 melloware/quarkus-faces:${version}

Known Issues


We have a WIKI page where we are keeping track of known issues while developing with Quarkus/MyFaces/PrimeFaces. Please feel free to contribute to that page if you find anything you think others should know!

Quarkus Insights YouTube


Quarkus Faces YouTube