1.82.0 • Published 2 years ago

@europeana/portal v1.82.0

Weekly downloads
-
License
EUPL-1.2
Repository
github
Last release
2 years ago

Europeana Collections portal, made with Vue.js + Nuxt.js

Maintainability Rating Reliability Rating Security Rating Coverage

Prerequisites

  1. Node.js version 16, and npm
  2. Contentful CMS account
  3. Redis cache (included as Docker Compose service for development)

Configuration

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.

Build

# start services
docker-compose up

# install package dependencies
npm install

# serve with hot reload at localhost:3000
npm run dev

# build for production and launch server
npm run build
npm start

For detailed explanation on how things work, refer to Nuxt.js docs.

Testing

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

Unit tests

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

End-to-end tests

First, create an env file for the app container, copying tests/e2e/docker/app/.env.example to tests/e2e/docker/app/.env and populating with actual API keys.

npm run test:e2e runs all end-to-end feature tests.

To run a single end-to-end test file, append the full path, e.g. npm run test:e2e tests/e2e/features/common/header.feature

If you have modified app files and want to re-run e2e tests, you will need to first rebuild the generated Docker images in the test stack, with npm run test:stack:rebuild

Visual tests

Ensure that you have set a Percy token as PERCY_TOKEN in tests/e2e/docker/nightwatch-visual/.env, then run npm run test:visual.

License

Licensed under the EUPL v1.2.

For full details, see LICENSE.md.

1.82.0

2 years ago

1.81.0

2 years ago

1.79.0

2 years ago

1.79.1

2 years ago

1.80.0

2 years ago

1.72.0

3 years ago

1.74.0

2 years ago

1.74.1

2 years ago

1.76.0

2 years ago

1.74.2

2 years ago

1.76.1

2 years ago

1.78.0

2 years ago

1.71.0

3 years ago

1.73.0

2 years ago

1.75.0

2 years ago

1.77.0

2 years ago

1.69.0

3 years ago

1.69.1

3 years ago

1.69.2

3 years ago

1.70.0

3 years ago

1.68.0

3 years ago

1.65.0

3 years ago

1.66.0

3 years ago

1.67.0

3 years ago

1.64.0

3 years ago

1.64.1

3 years ago

1.64.2

3 years ago

1.64.3

3 years ago

1.63.0-jsdelivr

3 years ago

1.60.0

3 years ago

1.62.0

3 years ago

1.61.0

3 years ago

1.60.1

3 years ago

1.63.0

3 years ago

1.62.2

3 years ago

1.62.1

3 years ago

1.57.0

3 years ago

1.59.0

3 years ago

1.58.1

3 years ago

1.58.0

3 years ago

1.58.2

3 years ago

1.56.1-k8s-10

3 years ago

1.56.1-k8s-11

3 years ago

1.56.1-k8s-12

3 years ago

1.56.1-k8s-5

3 years ago

1.56.1-k8s-6

3 years ago

1.56.1-k8s-4

3 years ago

1.56.1-k8s-9

3 years ago

1.56.1-k8s-7

3 years ago

1.56.1-k8s-8

3 years ago

1.56.1

3 years ago

1.56.0

3 years ago

1.55.0

3 years ago

1.54.2

3 years ago

1.54.1

3 years ago