Installation and Execution of MediCurator¶
You can easily install Mediurator with only a few staps.
First, you need to get a copy of MediCurator from the following website https://bitbucket.org/BMI/medicurator. Here is the quick start.
Set the Constants¶
Basicly, the user should set the following the arguments.
- Set the API_KEY in ./config.sh
- Set DATA_BASE_DIR in ./src/main/java/edu/emory/bmi/medicurator/Constants.java
- Set PROXY_HOST, PROXY_PORT if necessary.
The user can choose use HdfsStorage or LocalStorage by changing STORAGE (hdfs/local) in Constants.java. To use HDFS, you should config HDFS_URI and HDFS_BASEDIR in Constants.java. For example, HDFS_URI = “hdfs://localhost:9000/” and HDFS_BASEDIR = “/user/xxx/medicurator/”
Building and Executing Using Apache Maven 3.3.x¶
Building
$./compile.sh
Testing
$mvn test
Run web application
$./run_servlet.sh
It is expected to have the TCIA_API_KEY set in the Constants.java to build with tests.
The webapp runs at http://localhost:2222/Index
You may want to run
$mvn exec:java -Dexec.mainClass=”edu.emory.bmi.medicurator.infinispan.StartInfinispan”
first so that data you hava stored beforehand won’t be lost although the web server has been closed.
Run Restful API
$./run_api.sh
Extend or leverage the exposed APIs, or simply test using a REST client such as the Postman Chrome application.
Dependencies¶
This project depends on the below major projects.
- Infinispan 8.2 stable
- dcm4che 3
- Apache HTTP Client
- Tomcat 7
- Hadoop 2.7.2
- Spark Java 2.5