- 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 environment variables
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
http.port = {8182 or cantaloupe port} (or if ssl) https.port =
delegate_script.enabled = true delegate_script.pathname = delegates.rb
source.static = FilesystemSource
FilesystemSource.BasicLookupStrategy.path_prefix = {path/to/exhibits/app}/client/public/storage/
FilesystemCache.pathname = /var/cache/{cache location}
copy 'delegates.rb' file into cantaloupe root folder (replace if existing file)
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