Skip to content

IUBLibTech/rdc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Research Data Catalog

A simple Samvera Hyrax application to catalog available Indiana University data sets.

Quickstart

Lando

Starts the service dependencies in containers, but not the application server which is run without containerization. Good for development as it allows easier debugging and code reloading.

  1. git clone this repository
  2. Install Docker and Lando
  3. lando start
  4. bundle install
  5. yarn install
  6. rails db:setup
  7. rails s
  8. https://localhost:3000

Docker Compose

Starts everything in containers.

  1. git clone this repository
  2. Install Docker
  3. docker compose up
  4. docker compose exec app rails db:setup
  5. https://localhost:3000

Authentication

Uses the IU Login service for authentication, which requires SSL to be enabled. In the development environment a self signed certificate is used. (See localhost gem)

After logging in, an initial admin user can be set via the console:

  1. rails c or docker compose exec app rails c
  2. User.first.roles << Role.find_or_create_by(name:'admin')