Redis cache (included as Docker Compose service for development)
Configuration options can be set in a .env file (see .env.example) or via ENV variables on your machine.
Some core features such as authentication and editorial content require the relevant configuration options to be specified. In particular, pay attention to the Europeana APIs, Contentful, Redis and oAuth sections in the example .env file.
# start services
# install package dependencies
# serve with hot reload at localhost:3000
npm run dev
# build for production and launch server
npm run build
For detailed explanation on how things work, refer to Nuxt.js docs.
To run end-to-end tests, you will need Docker Engine and Compose installed and the docker service running.
Run the full test suite with: npm test
npm run test:unit runs all unit tests.
To run unit tests from a single file, append the full path, e.g. npm run test:unit tests/unit/components/PageHeader.spec.js