Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.5 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.5 KB

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

HTRC-ExtractedFeatures-API

An API for accessing the HTRC Extracted Features dataset

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 EFAPI_MONGODB_URI environment variable to point to the Mongo instance holding the EF data
  3. Set 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-extractedfeatures-api -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

https://htrc.stoplight.io/docs/ef-api