@molgenis/molgenis-ui-menu
v1.0.1
Published
Molgenis menu component
Downloads
2
Keywords
Readme
MOLGENIS menu component
This is the MOLGENIS menu component which is used to navigate through MOLGENIS.
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
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.