This is the repository for the circulation history app that is attached to My Account.
-
Clone the github repo
$ git clone git@github.com:mlibrary/circulation_history.git -
Set up the environment variables by copying .env-example
$ cp .env-example .env
$ vi .env#.env
ALMA_API_KEY='YOURAPIKEY'Build the image:
$ docker-compose build
Bundle install ruby gems
$ docker-compose run --rm web bundle installTo run the app:
$ docker-compose upFor Rails rspec tests make sure then database is running. Then run the tests:
$ docker-compose up -d database
$ docker-compose run --rm web bundle exec rspeclib/dev_db/Dockerfile has instructions for creating an image of the database that's preloaded with fake data. It's intended for use with patron_account/My Account.
When the rake task alma_circ_history:load runs a get request is made to a pushmon url. At the moment the pushmon account is owned by niquerio
Kubernetes Configuration lives in patron-account-kube
Backup xml files of the analytics reports are located in ./config/alma_analytics_reports/