Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

molgenis/molgenis-ui-footer

Repository files navigation

MOLGENIS footer component

This component serves the MOLGENIS footer for VUE apps.

Contributing

There are 2 ways to test and develop in components for MOLGENIS.

  • locally without MOLGENIS
  • locally with MOLGENIS

Test locally without a running MOLGENIS instance

For local testing you can execute the following commands:

# To install the application
yarn install

# To run develop mode
yarn dev

It will render a local version of the core variable catalogue.

Run unit tests

You can run unit tests by executing this command:

# Run once
yarn unit

# Run in watch-mode
yarn debug

Run end-to-end tests

You can run end-to-end test locally by running the following command:

yarn e2e

Test with a running MOLGENIS instance

For local testing with a running MOLGENIS instance you have to alter the config of the app:

Comment in the following block

config/index.js

module.exports = {
  dev: {

    // Paths
    assetsSubDirectory: 'static',
    assetsPublicPath: '/',
    // Beginning of block
    proxyTable: {
      '/login': {
        target: 'http://localhost:8080'
      },
      '/api': {
        target: 'http://localhost:8080'
      }
    },
    // End of block

And comment out this block in the same file.

/**
 * GET and POST interceptors
 * Removes the need for a running backend during development
 */
No mock data available

That is it. Run a MOLGENIS instance on localhost:8080 and start the core variable catalogue with:

yarn dev

Build your MOLGENIS component

You can now create a working application that can be imported in MOLGENIS directly, by executing:

yarn build

If you submit a pull-request you can release the component by navigating to the jenkins and click on release.