Git Product home page Git Product logo

portal.js's Introduction

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

Build Status Maintainability

Prerequisites

  1. Node.js version 12, and npm
  2. Contentful CMS account

##Configuration Configuration options can be set in a .env file(see .env.example) or vie ENV variables on your machine. For Europeana API connections you may additionally use a .apisrc.js file in the root of your project, see the relevant README for more explanation.

Build Setup

# 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

# generate static project
$ npm run generate

# serve storybook with hot reload at localhost:6006
$ npm run storybook

# generate static storybook
$ npm run build-storybook

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 tests with:

$ npm test

Running unit tests only

npm run test:unit just runs everything.

To run a single file: npm run test:unit -g tests/unit/[REST_OF_FILE_PATH]

Running end-to-end tests only

npm run test:e2e and npm run test:e2e:ci just run everything.

If you've manually started the test server with: NODE_ENV=test npm run stack:up, then you can for example:

Run only the header.feature file using path.

npm run test:chrome:headless tests/features/header.feature

Run only the "header" feature test using its name.

npm run test:chrome:headless -- -p all --name header

Run only the "header" feature in the header file.

npm run test:chrome:headless tests/features/header.feature -- --name header

Run everything with your driver of choice.

npm run test:chrome:headless -- -p all

test:chrome:headless can be substituted for the other avialable driver commands test:gecko and test:chrome.

Be aware however that with geckodriver some tests are known to fail as it is not yet feature complete. It is therefore at present of limited use.

License

Licensed under the EUPL v1.2.

For full details, see LICENSE.md.

portal.js's People

Contributors

rwd avatar mirjamverloop avatar lbiedinger avatar monkemedia avatar pixelomo avatar europeanadevelopment avatar spyrosbek avatar annachristaki avatar abbe98 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.