Worthwhile: A tour

Justin Coyne

Data Curation Experts

What is Worthwhile?

Q: Why leave Curate?

A: Complexity

Q: Why leave Curate?

A: Tests were too slow

Q: Why leave Curate?

A: Community is too conservative for rapid change.

Q: Why leave Curate?

A: Old versions of dependencies

Solutions

Demo Case Digital Library

Now it's your turn

Prerequisites

$ rails --version
Rails 4.1.6

Installing

$ rails new worthwhile_demo
$ cd worthwhile_demo

Add the gem

Open Gemfile and add these lines

gem 'worthwhile'

Uncomment this line:

gem 'therubyracer'

Save the file and quit the editor.

Install Dependencies

On the command line type:

$ bundle install

When this is complete you should see:

...
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.

Run the generator

$ rails generate worthwhile:install

Setup a test Jetty with Fedora/Solr

If you've already downloaded jettywrapper move the v7.0.0.zip file into tmp/

cp /home/vagrant/v7.0.0.zip tmp/
$ rake jetty:unzip jetty:config

Start Jetty

$ rake jetty:start
You should see jetty started at http://localhost:8983/fedora/describe within 1 minute.

Run the database migrations

$ rake db:migrate

Start the server

$ rails server

Start the background workers

$ TERM_CHILD=1 QUEUE=* rake environment resque:work
* This may only work if you have Redis and the Hydra::Derivatives prerequisites installed

Make a custom work type

$ rails generate worthwhile:work ScholarlyPaper

Custom Work

Fin

/