- 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.
Cloning the project:
$ git clone [email protected]: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