This API is implemented in order to integrate front-end with Galaxy through a RestAPI.
-
Checkout project
-
Open command prompt
-
Navigate to project directory
-
Create settings Java parameters file :
vi src/main/java/gr/di/uoa/kk/gatewayApi/helpers/GenParameters.java
-
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; } }
-
In the project directory :
gradle clean
-
In the project directory :
gradle war
-
In the project directory :
cd build/libs
-
File .war is in this folder
- Install Application Server(i.e. Tomcat)
- Stop Application Server if running(i.e. In Tomcat navigate to root directory and run
./bin/shutdown.sh
) - 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/
) - Start Application Server(i.e. In Tomcat navigate to root directory and run
./bin/startup.sh
)