Skip to content

NYULibraries/specialcollections-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Special Collections Prototype

NYU Libraries Special Collections Discovery Application recreated with Blacklight 8.x

Getting Started

To check out the project and stand up a local instance:

$ git clone [email protected]:NYULibraries/specialcollections-prototype.git
$ cd specialcollections-prototype
$ bundle install
$ bin/rake sc:server

Then visit http://localhost:3000

Loading Data in Dev

There is a growing number of fixture files in spec/fixtures/files, pulled from dlfa-188_v1-indexer-http-requests-xml.

While the dev server is running (sc:server above) you can load these fixtures by running:

$ bin/rake sc:load

Playwright End-to-End Tests

The Playwright service automatically runs bin/rake sc:load in a short-lived helper container before executing the browser tests. This seeds the development Solr core with the full fixture set and leaves the index populated for ad-hoc browsing afterward.

To launch the suite (and its prerequisite containers) in one step:

docker compose up playwright

Add --build if you need to rebuild the Docker images first. The command will:

  • Start Solr and the Rails app
  • Run solr-fixtures (which executes bin/rake sc:load against the Solr container)
  • Execute the Playwright suite

Playwright test files share a Prettier + ESLint configuration scoped to the e2e workspace. Run the formatter:

yarn --cwd e2e format

Use yarn --cwd e2e lint to verify formatting and linting without modifying files.

Test Suite

To run the test suite:

$ bin/rake sc:test

To autofix any Rubocop issues, run the following:

$ bundle exec rubocop -a

Running Against Another Solr

To stand up dev against an existing instance of Solr:

$ SOLR_URL=http://ip-address:port/solr/findingaids bin/rails server

About

Blacklight 8.x implementation of the NYU Libraries Special Collections Discovery Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •