Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.06 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.06 KB

Course Reserves

=========

CI

https://searchworks.stanford.edu/reserves

Requirements

  1. Ruby & bundler
  2. nodejs & Yarn

Local Installation

  $ bundle install
  $ yarn install
  $ bin/rails db:setup

Start the rails app

$ bin/dev

Start the rails app with an admin user logged in

$ REMOTE_USER=test_user eduPersonEntitlement=sulair:course-resv-admins bin/dev

To load sample data: 1a. To generate the JSON files under lib/course_work_content, run the bin/rake fetch_courses task locally. This process will take a few hours. 1b. Alternatively, you can copy JSON files from "lib/course_work_content" from an existing staging or production system. scp "reserves@sul-reserves-stage:~/reserves/current/lib/course_work_content/*" lib/course_work_content 2. Restart the rails server

Testing

Run all the tests

$ bin/rake