|
1 | 1 | # PatternFly Java Showcase |
2 | 2 |
|
3 | | -The showcase for PatternFly Java is inspired by the [PatternFly](https://www.patternfly.org/) website. It provides pages for all supported components, layouts and extensions. |
| 3 | +The [showcase](https://patternfly-java.github.io/) for PatternFly Java is inspired by the [PatternFly](https://www.patternfly.org/) website. It provides pages for all supported components, layouts and extensions. |
4 | 4 |
|
5 | | -The bulk of the showcase code is in the `common` module. The |
| 5 | +The bulk of the showcase code is in the [`common`](https://github.com/patternfly-java/patternfly-java/tree/main/showcase/common) module. The `gwt` and `j2cl` modules contain just some bootstrapping code and depend on the `common` module. |
| 6 | + |
| 7 | +# Build |
| 8 | + |
| 9 | +To build the showcase follow theses steps |
| 10 | + |
| 11 | +## GWT |
| 12 | + |
| 13 | +### Development Mode |
| 14 | + |
| 15 | +```shell |
| 16 | +cd $PATTERNFLY_JAVA_HOME |
| 17 | +mvn -Dquickly install |
| 18 | +cd showcase/gwt |
| 19 | +mvn gwt:devmode |
| 20 | +open http://localhost:8888/showcase |
| 21 | +``` |
| 22 | + |
| 23 | +### Production Mode |
| 24 | + |
| 25 | +```shell |
| 26 | +cd $PATTERNFLY_JAVA_HOME |
| 27 | +mvn --projects org.patternfly:patternfly-java-showcase-gwt --also-make -P prod,showcase install |
| 28 | +``` |
| 29 | + |
| 30 | +The compiled HTML, JavaScript and CSS filed are in `showcase/gwt/target/patternfly-java-showcase-gwt-<version>-gwt-app`. Please use a local HTTP server like https://www.npmjs.com/package/http-server open the showcase: |
| 31 | + |
| 32 | +```shell |
| 33 | +http-server showcase/gwt/target/patternfly-java-showcase-gwt-0.2.2-SNAPSHOT-gwt-app |
| 34 | +open http://localhost:8080/showcase |
| 35 | +``` |
| 36 | + |
| 37 | +## J2CL |
| 38 | + |
| 39 | +### Development Mode |
| 40 | + |
| 41 | +```shell |
| 42 | +cd $PATTERNFLY_JAVA_HOME |
| 43 | +mvn --projects org.patternfly:patternfly-java-showcase-j2cl --also-make -P showcase j2cl:watch |
| 44 | +``` |
| 45 | + |
| 46 | +In another shell execute |
| 47 | + |
| 48 | +```shell |
| 49 | +cd $PATTERNFLY_JAVA_HOME/showcase/j2cl |
| 50 | +yarn run watch |
| 51 | +``` |
| 52 | + |
| 53 | +### Production Mode |
| 54 | + |
| 55 | +```shell |
| 56 | +cd $PATTERNFLY_JAVA_HOME |
| 57 | +mvn --projects org.patternfly:patternfly-java-showcase-j2cl --also-make -P prod,showcase install |
| 58 | +``` |
| 59 | + |
| 60 | +The compiled HTML, JavaScript and CSS filed are in `showcase/j2cl/target/showcase`. Please use a local HTTP server like https://www.npmjs.com/package/http-server open the showcase: |
| 61 | + |
| 62 | +```shell |
| 63 | +http-server showcase/j2cl/target/showcase |
| 64 | +open http://localhost:8080 |
| 65 | +``` |
| 66 | + |
| 67 | +# Feedback |
| 68 | + |
| 69 | +Please let me know if you have troublw building the showcase. File an [issue](https://github.com/patternfly-java/patternfly-java/issues/new) or join the [chat](https://app.gitter.im/#/room/#pf4-java_core:gitter.im). |
0 commit comments