Skip to content

ndlib/curate_nd

Repository files navigation

CurateND

Build Status Stories in Ready

This application will be deployed to curate.nd.edu.

Its primary function is to be a self-deposit interface for our institutional digital repository.

Note: If using Docker, see README_DOCKER.md for instructions.

Installation Notes

Installing the clamav gem on OS X is a trying process. It can be safely excluded from your development environment

bundle install --without headless

Testing

1. Start dependencies

bundle exec rake curatend:jetty:start

2. Run specs

To execute the full test suite, run

bundle exec rake

To run individual specs, run

bundle exec rspec spec/path/to/file_spec.rb

Testing of Specific Curation Concern Types

The deposit page shows only the curation concern types that you are authorized to create. These options are generated from /config/work_type_policy_rules.yml.

Certain curation concern types are never created interactively:

  • ETDs are now created only via Sipity. (However, they can be authorized through the work_type_policy_rules for local testing.)
  • OSF Archives are imported via an option on the deposit menu.

Running the application

1. Start dependencies

Before you start the web-server you'll need to make sure Fedora and SOLR are running.

Start Fedora and SOLR via jetty:

bundle exec rake curatend:jetty:start

Start MySQL:

mysql.server start

2. Initialize the database

Load the database schema into MySQL:

bundle exec rake db:drop db:create db:schema:load

Seed the database with authority groups to give yourself access to the app:

bundle exec rake db:seed

Optional: seed database with sample data:

bundle exec rake db:seed:dev

3. Start Rails

In most cases, you will need SSL, so use this command:

bin/rails s

You will need to go to http://localhost:3000 (yes HTTP, not HTTPS even though SSL is running. Its a new Rails behavior)

Release Documentation

See the release documentation for building a release.

Automated Testing

Testing specs for curate.nd.edu run with BrowserStack open source program

BrowserStack