Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.52 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.52 KB

CI codecov GitHub release (latest SemVer including pre-releases)

HTRC-Torchlite-EFAPI

An API for accessing aggregated EF data for Torchlite

Build

sbt clean stage Then find the result in target/universal/stage/

Deploy

Copy the folder target/universal/stage/ to the deployment location and rename as desired (henceforth referred to as DEPLOY_DIR).

Setup

  1. Generate an application secret by running sbt playGenerateSecret
  2. Set TORCHLITE_EFAPI_MONGODB_URI environment variable to point to the Mongo instance holding the EF data
  3. Set TORCHLITE_EFAPI_SECRET environment variable to the value generated by step 0

(alternatively, these settings can also be configured by editing target/universal/stage/conf/application.conf)

Run

Note: You must have the environment variables set before running (or edited the application.conf accordingly)

$DEPLOY_DIR/bin/htrc-torchlite-efapi -Dhttp.address=HOST -Dhttp.port=PORT -Dplay.http.context=/api

where HOST is the desired hostname or IP to bind to, and PORT is the desired port to run on.

API

TBD