Johns Hopkins University Geoblacklight Project
GoRails has great Ruby on Rails setup instructions for macOS, Ubuntu, and Windows.
cd <your project directory>
git clone git@github.com:jhu-library-applications/geoblacklight.git
Duplicate the .example files in the project and remove the .example string from each of their filename. Configure each file as necessary, or keep the default values.
cp .example.env.development .env.development
cp .example.env.test .env.test
Test with Bundler 2.1.4
bundle
yarn install
bin/rails db:migrate RAILS_ENV=development
The rake task below will spin up Solr, index the test fixture documents, and start the default Rails web server.
bundle exec rake jhu:server
- View the application at http://localhost:3000
- View the Solr admin panel at http://localhost:8983
bundle exec rake jhu:index_jhu_fixtures
bundle exec rake jhu:b1g_index_umd_data
Stop any instances of GeoBlacklight before running this command.
RAILS_ENV=test bundle exec rake ci
Add RUBYOPT=W0 to suppress deprecation warnings.
RUBYOPT=W0 RAILS_ENV=test bundle exec rake ci
To run the GeoPortal's Solr server via Docker, start Docker on your local computer, and run the following command:
docker-compose --env-file .env.development up