Skip to content
This repository has been archived by the owner on Oct 31, 2020. It is now read-only.

projectblacklight/code4lib_precon_demo

Repository files navigation

Blacklight example for Code4Lib 2017 preconference

Build Status

System dependencies

  • Ruby 2.3 or greater
  • Java 7 or greater

GoRails provides a tutorial for preparing your machine for Rails development on OS X and Linux.

Getting Started

Cloning the project:

$ git clone git@github.com:projectblacklight/code4lib_precon_demo.git # preferred, or:
# $ git clone https://github.com/projectblacklight/code4lib_precon_demo.git # or:
# download https://github.com/projectblacklight/code4lib_precon_demo/archive/master.zip

$ cd code4lib_precon_demo

Installing the dependencies:

$ bin/setup
# this runs `bundle install`, `rake db:setup`, and does environment sanity checks

Running the tests:

$ bundle exec rake ci

Running the rails server:

$ bundle exec rails server

Starting solr:

# in a new terminal:
$ bundle exec solr_wrapper -p 8983 -n blacklight-core -d solr/conf -i tmp/solr

Indexing data into solr:

Download our [sample MARC data] (https://github.com/projectblacklight/blacklight-data/archive/master.zip).

$ MARC_FILE=../path/to/the/blacklight-data/lc_records.utf8.mrc bundle exec rake solr:marc:index

References