Codebase for the datahousing server deployed on Brandeis-LLC site as a part of CLAMS Project.
At the moment, the server is used to resovle AAPB GUIDs to local file paths, and works with the accompanying client, mmif-docloc-baapb
MMIF plugin.
The server deployment address is stored as a organization variable. To use the server (and baapb
scheme in MMIF document locations), set BAAPB_RESOLVER_ADDRESS
environment variable to the deployment address, and install the client plugin.
All brandeis
tagged pre-built container images (available in https://github.com/orgs/clamsproject/packages)
To use the server directly outside of a CLAMS app, use searchapi
route with these two query string parameters:
file
: one oftext
,audio
,video
,markup
, that indicates the type of the file to search forguid
: the AAPB GUID to search for (eithercpb-aacip-xxx-yyyyyyyyyy
or simplyxxx-yyyyyyyyyy
form)
Connect to /
route to use the web app. The web app allows you to search for files by GUID.
Install all the python dependencies with pip install -r requirements.txt
, and configure your server using .env
file or via environment variables (See .env.sample
file for an example).
FLASK_APP
: must beapi
FLASK_DEBUG
: set to1
to enable debug mode, otherwise0
FLASK_RUN_PORT
: port number to listenFLASK_RUN_HOST
: hostname to listenASSET_DIR
: path to the directory where the AAPB media files (assets) are storedBUILD_DB
: set to1
to build the database from scratch, otherwise0