The SUL Staff Directory is a Rails application that:
- harvests the Stanford Registry's Org Chart to determine all the departments in the Stanford University Libraries
- harvests the Stanford LDAP directory to determine all SUL staff
- fetches the (public) directory information for staff and exposes a common staff directory table
- Ruby 3.1
- Bundler
- A database
Clone the repository
$ git clone [email protected]:sul-dlss/sul-directory.git
Change directories into the app and install dependencies
$ bundle install
Run database migrations
$ rake db:migrate
Start the development server
$ bin/dev
Configuration is handled through the RailsConfig settings.yml files.
$ bin/rails db:seed
The test suite (with RuboCop style inforcement) will be run with the default rake task (also run on travis)
$ bin/rake
The specs can be run without RuboCop enforcement
$ bin/rake spec
The RuboCop style enforcement can be run without running the tests
$ bin/rake rubocop