Sinatra app to handle redirects for Europeana Fashion URLs
Fashion hashes and equivalent Europeana record IDs are expected to be stored in PostgreSQL.
Set the environment variable DATABASE_URL
to the URL of the PostgreSQL
database, e.g. DATABASE_URL="postgres://fashion@localhost/fashion_redirects"
Initialise the database with bundle exec rake db:setup
. The seed script will
add an initial set of static page redirects.
To further populate the database with redirects for Europeana Fashion from the
Europeana Search/Record API, set your API key in the environment variable
API_KEY
then use bundle exec rake fashion:items
.
Start the app using Puma: bundle exec puma -C config/puma.rb
Licensed under the EUPL V.1.1.
For full details, see LICENSE.md.