Skip to content

Setup Valkyrie Prototype: Installing Blacklight

FCRodriguez7 edited this page Sep 13, 2019 · 12 revisions

Blacklight Installation

Dependency Versions

  1. Ruby 2.5+
  2. Rails 5.1 - 5.2.3 (6+ does not work with Blacklight)
  3. Bundler 1.16+
  4. Installation of Postgres 11.3

If you don't have ruby installed:

  1. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. brew install rbenv
  3. Do the additional commands that is printed after rbenv is installed
  4. rbenv install 2.5.3
  5. rbenv global 2.5.3
  6. gem install rails -v 5.2.3
  7. gem install bundler

Conventional Configuration

  1. Create new rails project rails _5.2.3_ new <project_name> -d postgresql
  2. Add Blacklight to the Gemfile gem ‘blacklight’
  3. Run bundle install
  4. Use rails generate blacklight:install --solr_version=7.7.1

Alternative Configuration

rails _5.2.3_ new <project-name> -m https://raw.github.com/projectblacklight/blacklight/master/template.demo.rb -d postgresql
rails generate blacklight:install --solr_version=7.7.1

Note: Alternative configuration includes the addition of the blacklight gem to the Gemfile, the generation of the rake task, and the database migration.