/Gateway_API

This API is implemented in order to integrate front-end with Galaxy through a RestAPI.

Primary LanguageJava

Gateway API

This API is implemented in order to integrate front-end with Galaxy through a RestAPI.

Requirements

Build:

  1. Checkout project

  2. Open command prompt

  3. Navigate to project directory

  4. Create settings Java parameters file :

    vi src/main/java/gr/di/uoa/kk/gatewayApi/helpers/GenParameters.java
  5. You can follow this template in order to make the Java parameters file :

    package gr.di.uoa.kk.gatewayApi.helpers;
    
    public class GenParameters {
        private static final String jwtSecret = "";
        private static final String jwtIssuer = "";
        private static final String galaxyURL = "";
        private static final String galaxyApiKey = "";    
    
        public static String getJwtSecret() {
            return jwtSecret;
        }
    
        public static String getJwtIssuer() {
            return jwtIssuer;
        }
    
        public static String getGalaxyURL() {
            return galaxyURL;
        }
    
        public static String getGalaxyApiKey() {
            return galaxyApiKey;
        }
    }
  6. In the project directory :

    gradle clean
  7. In the project directory :

    gradle war
  8. In the project directory :

    cd build/libs
  9. File .war is in this folder

Deploy:

  1. Install Application Server(i.e. Tomcat)
  2. Stop Application Server if running(i.e. In Tomcat navigate to root directory and run ./bin/shutdown.sh )
  3. Copy .war file in the application folder(i.e. In Tomcat navigate to root directory and copy into webapps directory cp path/to/war webapps/ )
  4. Start Application Server(i.e. In Tomcat navigate to root directory and run ./bin/startup.sh )