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.

Application


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

Optimizations


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


To run the example in HotSpot Production mode:

git clone https://github.com/melloware/quarkus-faces
cd quarkus-faces
mvn clean package
java -jar target/quarkus-app/quarkus-run.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!