Ruby version 2.7.4
Rails version 5.1.7
Blacklight 7.4.1
git clone git@github.com:emory-libraries/blacklight-catalog.git
cd ./blacklight-catalog
gem install bundler:2.1.4
bundle install
rails db:create
. If you run into errors here, it may be one of two things:
ENV
variables may not be set correctly. If so, reach out to an already up and running developer for help.ENV
variables and try the create command above once more.rails db:migrate
bundle exec solr_wrapper
rails server
http://localhost:3000/catalog
and see the applicationbundle exec rails c
u = User.new
u.uid = "user"
u.display_name = "User Name"
u.email = "email@testdomain.com"
u.password = "password"
u.password_confirmation = "password"
u.save
solr_wrapper --config config/solr_wrapper_test.yml
bundle exec rspec
. All tests should be passingspec/support/solr_documents
bundle exec rails c
solr = Blacklight.default_index.connection
response = solr.get 'select', params: { q: 'id:YOUR_ID' }
document = response["response"]["docs"].first
document.deep_symbolize_keys!
:score
and :_version_
lines (will not re-save to solr if these are included).freeze
to the end of the hashcd
into the blacklight-catalog
repositorydocker-compose-sample.yml
into docker-compose.yml
and set credentialsdotenv-sample
in a new file .env.development
. Reach out to a colleague for guidance setting this file since some credentials require additional approvals. Ensure credentials in .env.development
match credentials in docker-compose.yml
.docker compose up
http://localhost:3000
RSolr::Error::Http - 404 Not Found
occurs while running tests.
Starting Solr 7.7.1 on port 8985 ... http://127.0.0.1:8985/solr/
jmeter/blacklight_catalog.jmx
from the file menu.In development mode, this app uses gems rack-mini-profiler
and stackprof
for profiling and generating flamegraphs. To generate a flamegraph, add ?pp=flamegraph
to any page you visit locally, e.g. http://localhost:3000/?pp=flamegraph
will generate a flamegraph for the home page.