=========
https://searchworks.stanford.edu/reserves
- Ruby & bundler
- nodejs & Yarn
$ 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
Run all the tests
$ bin/rake