Skip to content

hathitrust/holdings-backend

Repository files navigation

Print Holdings persistent data store

Build Status

Prerequisites / Setup

docker compose build
docker compose run dev bundle install
docker compose run dev bin/reset_database.sh

Running the tests

docker compose run --rm test

Clearing out/resetting the data

For resetting everything (cleaning up containers & their persistent volumes):

# Clear it out
docker compose down # to stop services
docker volume rm holdings-backend_data_db # to clear out the development database
docker volume rm holdings-backend_gem_cache # to clear out gems

# Initialize the database
docker compose run dev bin/reset_database.sh

Generating and loading fake data

This will generate a synthetic OCLC concordance, HT items, and holdings for a single institution, and load it:

bash bin/load_test_data.sh

System Operation

See Routine Tasks for Holdings System (restricted access) for procedures for loading holdings, processing the OCLC concordance, and running various reports.

Debugging settings

Setting the DEBUG environment variable will log more information in reporting about individual data elements as they are processed.

Setting LOG_SQL will log each statement run against the database.

About

holdings-backend

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 8

Languages