- Configure external services:
cantaloupe image server
exhibits backend elastic index
-
Clone repo: https://github.com/dulibrarytech/exhibits-frontend
-
cd into project folder
-
run 'npm i'
-
Set cantaloupe server url in exhibits app .env file
See .env_sample or App Configuration > Environment Variables section below for required fields
Create .env file in project root, add fields
-
run 'npm build'
-
run startup script: 'sh start_app.sh'
From command line run 'npm run dev'
cantaloupe v5.0.4
delegate_script.enabled = true
source.static = FilesystemSource
FilesystemSource.BasicLookupStrategy.path_prefix = "{path/to/exhibits/app}/client/public/storage/"
copy 'delegates.rb' file into cantaloupe root folder (replace if existing file)
OR implement the delegates.rb hook functions per the included delegates.rb script
-
source()
-
filesystemsource_pathname()
Update with Cantaloupe path
.env - see 'env-sample' file
NODE_ENV={development|production} NODE_PORT={node port of app} EXHIBITS_API_KEY={hash string} EXHIBITS_API_DOMAIN="http://localhost:5678/api/v1" EXHIBITS_IIIF_IMAGE_SERVER_URL={url to image tile server (for zoomable large images)} REPOSITORY_DOMAIN={digitaldu repository domain e.g.: "https://digital-repository.domain.edu/"} REPOSITORY_API_KEY={digitaldu repository api key} REPOSITORY_IIIF_SERVER_URL={path to digitaldu repository iiif server} RESOURCE_LOCATION={location of local storage for media files. this folder must be located in the /public folder} RESOURCE_SERVER_URL={TODO if calling this directly from client, include here}
settings.js
'banner_1': hero image with title/subtitle overlay, description text block appears below hero image 'banner_2': hero image has no text overlay, title/subtitle and description appear below the hero image