If you just want to run Windup Web, not build or modify it, the simplest way is to use the docker image at https://hub.docker.com/r/windup3/windup-web_nightly/.
If you want to build Windup Web yourself and run it without setting up a WildFly server and Keycloak, you can build windup-web-distribution after building windup-web to create a self-contained distribution.
- JDK 8
- Maven 3.2.5+ (3.3.x recommended)
-
Set your local Maven
setting.xmlby copying filesettings.xmlfrom checked out sources into$HOME/.m2/or use it directly while calling maven with option-s settings.xml -
Install NodeJS Package Manager (npm)
- Debian/Ubuntu:
sudo apt-get install npm - RHEL 7: 1) Install EPEL 2)
sudo yum install npm
NOTE: If npm is version is less than 3.8.8, try the following to force an update:
npm install -g npm - Debian/Ubuntu:
-
Install yarn package manager
npm install -g yarn -
npm install -g bower- If you run into problems with permissions (typically EACCES error), use this guide to fix it.
npm installcommand should be replaceable withyarn add. For global packages, useyarn global add. Yarn should be faster, but if there is any problem with it, use npm. Here is nice comparison of npm and yarn commands.
-
Get current version of phantomjs
if phantomjs is not installed yet, run
npm install -g phantomjs-prebuiltelse run
npm update -g phantomjs-prebuilt -
For development purpose and regular redeployment, raise the Metaspace limit. In
wildfly-10.1.0.Final/bin/standalone.conf, change theMaxMetaspaceSizevalue to 2048:JAVA_OPTS="-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=2048m -Djava.net.preferIPv4Stack=true"
-
Build:
mvn clean install -DskipTests -
Wildfly/EAP 7 must be run with
-c standalone-full.xmlas Messaging subsystem is required. -
Execute the CLI script at: scripts/eap-setup.cli on Wildfly/EAP 7
bin/jboss-cli.sh -c --file=scripts/eap-setup.cli -
Deploy the exploded
services/target/windup-web-servicesandui/target/web-servicesto EAP 7.There are 3 possible ways how to do it.
-
Manual copying:
cp -r services/target/windup-web-services ~/apps/wildfly-10.1.0.Final/standalone/deployments/windup-web-services.war; touch ~/apps/wildfly-10.1.0.Final/standalone/deployments/windup-web-services.war.dodeploy; cp -r ui/target/windup-web ~/apps/wildfly-10.1.0.Final/standalone/deployments/windup-web.war; touch ~/apps/wildfly-10.1.0.Final/standalone/deployments/windup-web.war.dodeploy;or
-
JBoss CLI deployment, deploy the
targetdirectory directly - see WildFly docs:deploy services/target/windup-web-services --unmanaged; deploy ui/target/windup-web --unmanaged;or
-
Editing profile configuration and adding the following block to
standalone-full.xmlunder<server>, at the end of the file:<deployments> <deployment name="windup-web-services" runtime-name="windup-web-services.war"> <fs-exploded path=".../windup-web/services/target/windup-web-services"/> </deployment> <deployment name="windup-web" runtime-name="windup-web.war"> <fs-exploded path=".../windup-web/ui/target/windup-web"/> </deployment> </deployments>
Note: Replace ... with real absolute path on your local environment.
-
-
Follow the steps for deploying keycloak in Keycloak Setup
-
Access the webapp: http://localhost:8080/windup-web