This component serves the MOLGENIS footer for VUE apps.
There are 2 ways to test and develop in components for MOLGENIS.
- locally without MOLGENIS
- locally with MOLGENIS
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.
You can run unit tests by executing this command:
# Run once
yarn unit
# Run in watch-mode
yarn debug
You can run end-to-end test locally by running the following command:
yarn e2e
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
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.