NYU Indian Ocean Collection, for scholars who may need access to the Indian Ocean materials.
Node version: >=18.14.1
In order to run the site locally, clone the repo and run:
npm installIn 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'
To preview locally run:
npm run devIndian 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.
cypress run or use the npm command
npm run cyptest-run cypress run -- --spec "cypress/e2e/nav.cy.js"or use the npm command
npm run cyptest-run -- --spec "cypress/e2e/nav.cy.js"cypress open or use the npm command
npm run cyptest