Skip to content

NYULibraries/indianocean

Repository files navigation

Indian Ocean Digital Collection

NYU Indian Ocean Collection, for scholars who may need access to the Indian Ocean materials.

Prerequisites

Node version: >=18.14.1

Installation

In order to run the site locally, clone the repo and run:

npm install

In your local environment, set up your query parameters in an .env file:

# urls
PUBLIC_APPURL = <localized_url>
PUBLIC_DISCOVERYURL = <discovery_api_url>
PUBLIC_VIEWERURL = <viewer_url>

# item descriptions
PUBLIC_ROWS = <displayed_items>
PUBLIC_STARTITEMS = <start_of_query>
PUBLIC_ALLITEMS = <num_items>
PUBLIC_COLLECTIONCODE = 'io'
PUBLIC_LANGUAGE = <language>
PUBLIC_BOOK = 'dlts_book'
PUBLIC_MAP = 'dlts_map'

Preview

To preview locally run:

npm run dev

Testing

Indian Ocean uses Cypress v13.6 which utilizes both e2e and component tests.

Ensure local server is running at specified base url in cypress.config when running npm run dev before running any test commands.

To visualize without Cypress GUI run

To run all tests

cypress run 

or use the npm command

npm run cyptest-run 

To run a specific test

cypress run -- --spec "cypress/e2e/nav.cy.js"

or use the npm command

npm run cyptest-run -- --spec "cypress/e2e/nav.cy.js"

To visualize with Cypress GUI run

cypress open 

or use the npm command

npm run cyptest

About

Indian Ocean Digital Collection

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •