Tenejo gives you the most commonly used Samvera features and functions in an easy to use hosted solution.
git clone https://github.com/curationexperts/tenejo.git
cd ./tenejo
then check out a working branch git checkout -b my_working_branch
Copy .env.sample
to .env.development
if you want to override any default settings in your local development environment.
Setup your database. We use PostgreSQL. To support the test and development environments, you'll need have Postgres installed and running.
Set up your gemset using rvm (it's possible you'll need to download a new Ruby, depending on the project - rvm install [ruby-version]
)
rvm list rubies
* ruby-2.5.1 [ x86_64 ]
=> ruby-2.6.3 [ x86_64 ]
# => - current
# =* - current && default
# * - default
rvm use gemset ruby-2.6.3@tenejo --create
ruby-2.6.3 - #gemset created /Users/max/.rvm/gems/ruby-2.6.3@tenejo
ruby-2.6.3 - #generating tenejo wrappers.........
Using /Users/max/.rvm/gems/ruby-2.6.3 with gemset tenejo
Run bundle install
Run bundle exec rails db:setup
to setup the development database and schema.
Start the servers, one per terminal window/tab - bundle exec fcrepo_wrapper
, bundle exec solr_wrapper
, bundle exec rails server
, and bundle exec sidekiq
(optional) Create standard accounts: bundle exec rails tenejo:standard_users_setup
.
Create default collection types: bundle exec rails hyrax:default_collection_types:create
bundle exec rails hyrax:default_admin_set:create
bundle exec fcrepo_wrapper --config config/fcrepo_wrapper_test.yml
, bundle exec solr_wrapper --config config/solr_wrapper_test.yml
bundle exec rspec
or bundle exec rspec spec/PATH_TO_TEST
IIIF_SERVER_URL=http://SERVERNAME/cantaloupe/iiif/2/
to use an external cantaloupe IIIF server