curationexperts / trove

Digital Image Library based on Tufts repository models
0 stars 2 forks source link

Tufts Digital Image Library

Build Status

This application was developed for Ruby 2.1.2, which was the most recently released version of Ruby as of Sept 2014.

Initial Setup for Developers

Install Dependencies

Copy the source code and install gems

Copy sample config files:

(optional) Replace the secret_key_base in config/secrets.yml.

Configure hydra-jetty:

In general you will want a development instance of both MIRA and Trove running using a shared copy of Fedora and Solr to mimic a production environment. You'll use MIRA to ingest content and edit metadata and Trove to view content and manage collections.

To run a shared copy of hydra-jetty:

NOTE: If you want to install a stand-alone copy of hydra-jetty and manually populate it with test data

  • rails g hydra:jetty
  • rake jetty:config
  • rake jetty:start

Share the data directory between MIRA & Trove

If you are running a shared version of Fedora and Solr, you'll want both applications to use the same data store directory. You can do this by editing the trove/config/application.yml file to point to the local_object_store where MIRA saves it's binary uploads. If mira and trove are both in subdirectories of the same working directory edit the config/application.yml file and change the development/object_store_root line to read

    object_store_root: "<%=Rails.root%>/../mira/tmp/local_object_store"

Check your installation

Ingest some images into MIRA, mark them for display in trove, and publish them to make them visible in trove. If you want to have MIRA and Trove running simulaneously you'll need to start one of the servers on an alternat port (instead of the default port 3000).

Then acccess the server via

Specify your featured pids

You can specify featured items or collections on the homepage by editing the feature_data.yml file appropriately