- Ruby 2.3 or greater
- Java 8 or greater
GoRails provides a tutorial for preparing your machine for Rails development on OS X and Linux.
Cloning the project:
$ git clone git@github.com:projectblacklight/blacklight_summit_princeton_demo.git # preferred, or:
# $ git clone https://github.com/projectblacklight/blacklight_summit_princeton_demo.git # or:
# download https://github.com/projectblacklight/blacklight_summit_princeton_demo/archive/master.zip
$ cd blacklight_summit_princeton_demo
Installing the dependencies:
$ bin/setup
# this runs `bundle install`, `rake db:setup`, and does environment sanity checks
Running the tests:
$ bundle exec rake
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