Skip to content
 
 

Repository files navigation

Trying out Windup Web

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.

Setting up the development environment

Requirements

  1. JDK 8
  2. Maven 3.2.5+ (3.3.x recommended)

Environment setup

  1. Set your local Maven setting.xml by copying file settings.xml from checked out sources into $HOME/.m2/ or use it directly while calling maven with option -s settings.xml

  2. 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
    
  3. Install yarn package manager

      npm install -g yarn
    
  4. Install Bower using NPM

    • npm install -g bower
    • If you run into problems with permissions (typically EACCES error), use this guide to fix it.
    • npm install command should be replaceable with yarn add. For global packages, use yarn 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.
  5. Get current version of phantomjs

    if phantomjs is not installed yet, run

      npm install -g phantomjs-prebuilt
    

    else run

      npm update -g phantomjs-prebuilt
    
  6. For development purpose and regular redeployment, raise the Metaspace limit. In wildfly-10.1.0.Final/bin/standalone.conf, change the MaxMetaspaceSize value to 2048:

    JAVA_OPTS="-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=2048m -Djava.net.preferIPv4Stack=true"
    

Running the webapp

  • Build: mvn clean install -DskipTests

  • Wildfly/EAP 7 must be run with -c standalone-full.xml as 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-services and ui/target/web-services to 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 target directory 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.xml under <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

About

Windup as a Web Service

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages