Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

PatternFly Java Showcase

The showcase for PatternFly Java is inspired by the PatternFly website. It provides pages for all supported components, layouts and extensions. The J2CL variant of the showcase is published to https://patternfly-java.github.io/.

The bulk of the showcase code is in the common module. The gwt and j2cl modules are just thin wrappers, contain just bootstrapping code and depend on the common module.

Build

To build the showcase, you can use the dev.sh and prod.sh scripts:

Development

USAGE:
    dev.sh [FLAGS] <mode>

FLAGS:
    -c, --clean         Adds the 'clean' goal
    -h, --help          Prints help information
    -v, --version       Prints version information
    --no-color          Uses plain text output

ARGS:
    <mode>              One of 'gwt' or 'j2cl'

GWT

Run ./dev.sh gwt, then open http://localhost:8888/showcase

Warning

GWT development mode currently only supports hot code reloading for the org.patternfly:patternfly-java-showcase-common module.

J2CL

Run ./dev.sh j2cl, wait until you see

[INFO] -----  Build Complete: ready for browser refresh  -----

then open another shell in showcase/j2cl and run

npm run watch

This will open https://localhost:1234/.

Production

USAGE:
    prod.sh [FLAGS] <mode>

FLAGS:
    -c, --clean         Adds the 'clean' goal
    -h, --help          Prints help information
    -v, --version       Prints version information
    --no-color          Uses plain text output

ARGS:
    <mode>              One of 'gwt' or 'j2cl'

After a successful build, the script will open https://localhost:8080

Feedback

Please let us know if you have trouble building the showcase. File an issue or join the chat.