Skip to content

sul-dlss/sul-directory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

89610b3 · Jan 13, 2025
Jan 10, 2025
Sep 8, 2023
Jan 4, 2024
Jan 8, 2024
Jan 5, 2023
Nov 27, 2018
Aug 26, 2015
Aug 26, 2015
May 9, 2019
Aug 27, 2015
Aug 26, 2015
Jan 5, 2023
Feb 17, 2021
Jan 5, 2021
Nov 27, 2018
Jan 4, 2024
Jan 13, 2025
Jul 22, 2024
Jan 5, 2023
Mar 13, 2024
Nov 27, 2018
Jan 5, 2021
Jan 5, 2023
Jan 13, 2025

Repository files navigation

SUL Staff Directory

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

Requirements

  1. Ruby 3.1
  2. Bundler
  3. A database

Installation

Clone the repository

$ git clone git@github.com: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

Configuring

Configuration is handled through the RailsConfig settings.yml files.

Harvesting the org chart

$ bin/rails db:seed

Testing

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