Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Hydra head demo for RIRI

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.textile

Hydrangea

Hydrangea is the reference implementation of the Hydra framework, which builds on Blacklight, ActiveFedora and Ruby on Rails

For a more thorough overview of the Hydra framework, see HYDRA_OVERVIEW.textile

Prerequisites

Hydrangea requires Ruby version 1.8.7. It will not run on Ruby 1.8.6. If you need to upgrade Ruby, consider using RVM to do so, especially in your development environment.

Other Requirements:

  • git
  • rubygems
  • rake (gem install rake)
  • Rails 2.3.5 (gem install -v=2.3.5 rails)

Basic installation & Running RSpec tests

This is based on Matt Zumwalt’s Hydra Stack: Getting Started notes from LibDevConX in March 2010.

Clone the git repository from github and pull the copy of jetty

git clone git://github.com/projecthydra/hydrangea.git
cd hydrangea
git submodule init
git submodule update

Note: It’s OK if ‘git submodule init’ returns ‘No submodule mapping found in .gitmodules for path ’vendor/plugins/blacklight/data’

This will pull all of the code. The ‘git submodule update’ command is pulling a copy of hydra-jetty into the jetty directory within hydrangea.

You are now in your working copy of hydrangea. Use rake to install the gem dependencies (this might not work perfectly – we’re still preparing this code for distribution).

rake gems:install

Now install the development dependencies (not required for runtime, but required to run tests)

gem install rcov rspec rspec-rails cucumber cucumber-rails webrat database_cleaner ruby-debug mocha httparty

Run your database migrations (only need to do this once after cloning the git repository).


rake db:migrate

Now run the bundled copy of Jetty, which has Fedora and Solr installed & configured to work with Hydra.

First, copy hydrangea’s solr configs into the hydra-jetty solr cores. (You only need to do this when you first clone the jetty submodule and when Hydrangea’s solr configurations change)


cp solr/conf/* jetty/solr/development-core/conf/
cp solr/conf/* jetty/solr/test-core/conf/

Then start jetty:

cd jetty 
java -jar start.jar

… leave that running and open a new terminal window. cd to wherever you checked out hydrangea

Run the Rspec tests to make sure everything is working properly.


{cd to wherever you cloned hydrangea, then…}
rake hydra:import_fixture pid=druid:tj532xx3843
rake hydra:import_fixture pid=hydrangea:fixture_mods_article1
rake spec

Now run the rails lighttpd server

script/server

If all goes well, you will be able to see an empty copy of hydrangea at http://localhost:3000

To get cucumber features to pass

You must ingest some more fixtures:

  rake hydra:import_fixture pid=druid:bz425fy5289
  rake hydra:import_fixture pid=hydrangea:fixture_mods_article2
  rake hydra:import_fixture pid=hydrangea:fixture_uploaded_svg1

Then run your tests.

  rake cucumber
Something went wrong with that request. Please try again.