Skip to content

nursa-reactome/nursa-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reactome Nursa Service

The Reactome Nursa service provides the following REST end points:

  • search - Searches for a term in the dataset DOI, name and description

  • dataset - Fetches dataset content

Installation

  1. Clone this Git repository.

  2. Install Maven.

  3. Install and configure Solr as described in the Reactome search-indexer repository.

  4. Obtain a Nursa API key from nursa.org.

  5. Define$HOME/.m2/settings.xml Maven profiles that set the access authorization properties 1, e.g.:

     <profile>
         <id>solr</id>
         <properties>
             <!-- Solr authorization -->
             <solr.user>solr</solr.user>
             <solr.password>my-solr-password</solr.password>
         </properties>
     </profile>
     <profile>
         <id>nursa</id>
         <properties>
             <!-- The Nursa Solr core host name. -->
             <solr.host>http://localhost:8983/solr/nursa</solr.host>
             <!-- The Nursa REST API access key. -->
             <nursa.api.key>my-api-key</nursa.api.key>
         </properties>
     </profile>
    
  6. Build the .war file:

     mvn clean package -U -P solr,nursa
    
  7. Copy the .war file to tomcat:

     cp target/Nursa.war $TOMCAT_HOME/webapps
    

    where $TOMCAT_HOME is the tomcat deployment location.

  8. The REST service can then be called by the Nursa Reactome Portal.

  9. Alternatively, the Nursa Reactome REST service can be started locally in an embedded server with the Maven tomcat7:run goal:

     mvn tomcat7:run
    

Notes

1 The solr profile can be pulled from the Reactome profile defined for data-content and reused to build that project as well.