Skip to content

Commit

Permalink
Updated for UberJar
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Nov 4, 2024
1 parent 912050a commit d288565
Showing 1 changed file with 28 additions and 10 deletions.
38 changes: 28 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,33 @@
[![PayPal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](https://www.paypal.me/mellowareinc)

### Goals

***
The main goal was to take an out of the box Faces (formerly JSF) application ([PrimeFaces Showcase](https://github.com/primefaces/primefaces/tree/master/primefaces-showcase))
and get it running in [Quarkus](https://quarkus.io/) and deployed as a GraalVM Native executable.
The main goal was to take an out-of-the-box Faces (formerly JSF)
application ([PrimeFaces Showcase](https://github.com/primefaces/primefaces/tree/master/primefaces-showcase))
and get it running in [Quarkus](https://quarkus.io/) and deployed as a GraalVM Native executable or an UberJar single
executable JAR.

### Application

***
See [QuarkusFaces Showcase](https://quarkus-faces-melloware-8a6a34c1.koyeb.app/) 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.
See [QuarkusFaces Showcase](https://quarkus-faces-melloware-8a6a34c1.koyeb.app/) 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

***

- Apache MyFaces (Quarkus) instead of Jakarta Mojarra (Wildfly)
- PrimeFaces [MOVE_SCRIPTS_TO_BOTTOM](https://primefaces.github.io/primefaces/13_0_0/#/gettingstarted/configuration)
- Quarkus Brotli Compression [ quarkus.http.enable-compression=true](https://quarkus.io/guides/http-reference#http-compression)
- Quarkus Brotli
Compression [ quarkus.http.enable-compression=true](https://quarkus.io/guides/http-reference#http-compression)
- OmniFaces [CombinedResourceHandler](https://showcase.omnifaces.org/resourcehandlers/CombinedResourceHandler)
- PrimeFaces Extensions [CombinedResourceHandler Helper](https://github.com/primefaces-extensions/primefaces-extensions/issues/293)
- jQuery [Hide Page Until Complete](https://stackoverflow.com/questions/9550760/hide-page-until-everything-is-loaded-advanced/28129691#28129691)
- PrimeFaces
Extensions [CombinedResourceHandler Helper](https://github.com/primefaces-extensions/primefaces-extensions/issues/293)
-

jQuery [Hide Page Until Complete](https://stackoverflow.com/questions/9550760/hide-page-until-everything-is-loaded-advanced/28129691#28129691)

### Development

Expand All @@ -54,8 +64,8 @@ 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
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/
Expand All @@ -64,6 +74,7 @@ Then open your web browser to http://localhost:8000/

***
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
Expand All @@ -72,7 +83,8 @@ docker run -i --rm -p 8000:8000 melloware/quarkus-faces:latest
### Docker Native

***
Builds a native Docker image running as a GraalVM (Mandrel) application.
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}
Expand All @@ -81,5 +93,11 @@ 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](https://github.com/melloware/quarkus-faces/wiki/Quarkus-Faces-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!
We have a WIKI page where we are keeping track
of [known issues](https://github.com/melloware/quarkus-faces/wiki/Quarkus-Faces-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](http://img.youtube.com/vi/DIN0I56-GR4/0.jpg)](http://www.youtube.com/watch?v=DIN0I56-GR4 "Quarkus Insights 165 What is new with Quarkus JSF")

0 comments on commit d288565

Please sign in to comment.