Sha256: cff59d9ae68cf8e442bf3e32d00574505027d05ca5c9c1e1f325d0f7f8929e0d
Contents?: true
Size: 1.88 KB
Versions: 1
Compression:
Stored size: 1.88 KB
Contents
# Bpluser [](https://travis-ci.com/boston-library/bpluser) [](https://coveralls.io/github/boston-library/bpluser?branch=master) Rails engine for providing Devise-based user models and functionality for digital repository applications using [CommonwealthVlrEngine](https://github.com/boston-library/commonwealth-vlr-engine). This includes bookmarks (Blacklight default), custom folders, and saved searches. # Requirements - `ruby >= 3.1, < 3.2` - `rails ~> 6.1.7` - `postgres v12 or higher` To install, add the following to your Gemfile: ```ruby gem 'bpluser', '~> 0.5.0' # OR gem 'bpluser', git: 'https://github.com/boston-library/bpluser' ``` Then run: ``` $ bundle install $ rails generate bpluser:install ``` When updating run ``` rails bpluser:install:update_migrations ``` (Note that the installer will ask to overwrite your local `config/locales/devise.en.yml`). ### Local development In one console, start Solr from project root: ``` $ solr_wrapper --config .solr_wrapper.yml ``` In a second console, index the sample Solr documents (run from `./spec/dummy`): ``` # Solr must be running $ bundle exec rake bpluser:test_index:seed ``` Run the migrations and start the app (in second console, run from `./spec/dummy`): ``` bundle exec rake db:create bundle exec rake db:migrate rails s # app should be accessible at 127.0.0.1:3000 ``` ### Running tests Start Solr from project root: ``` $ solr_wrapper --config .solr_wrapper_test.yml ``` Index the sample Solr documents (run from `./spec/dummy`): ``` # Solr must be running $ RAILS_ENV=test bundle exec rake bpluser:test_index:seed ``` Run specs ``` # run all tests $ bundle exec rake spec # run a single spec $ bundle exec rake spec SPEC=./spec/models/some_model_spec.rb ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bpluser-0.5.0 | README.md |