Redirects from Europeana Fashion website URLs to equivalents on other Europeana websites, as an OpenWhisk web action.
action.js will query a Redis service, using the HTTP request path as the key, and expect as the response a full URL to which the client will be redirected.
- Node.js 10
- Redis
wsk action create atc/fashion src/action.js --web true --kind nodejs:10 -m 128
Optionally include Redis URL and Base64-encoded CA certificate:
wsk action create atc/fashion src/action.js --web true --kind nodejs:10 -m 128 \
--param redisUrl "redis://admin:[email protected]/0" \
--param redisCaCertificateBase64 "..."
npm install
Tests require Docker Compose to run Redis.
npm test
Licensed under the EUPL V.1.1.
For full details, see LICENSE.md.