The rd-components
library is a collection of Vue components for use in building custom Vue applications for use in Molgenis databases. The aim of this library is to speed up the development process and to standardize vue applications across a number of Molgenis instances.
cd rd-components
yarn build
yarn workspace <child-workspace> add rd-components@<version>
Create a new Vue application in the apps/
folder and follow the prompts. Make sure you enable view router.
yarn create vite
Note: When naming projects, avoid using 'app' in the name. In Molgenis, the prefix 'app' is automatically added so apps will appear as 'app-app-*'.
- Fill in the scripts in the
package.json
file - Copy config files from another subworkspace
- Copy
vite.config.js
and update the devProxy - Install the rd-components library:
yarn workspace <subworkspace> add rd-components@<version>
In another child workspace, create a new footer component.
cd <child-workspace>
touch src/components/CustomFooter.vue
- For GeoMercator visualizations, you will need to have the latest geospatial file of European Territories. See https://github.com/AshKyd/geojson-regions for more information. The geojson file was further modified using mapshaper.org to remove countries that weren't necessary to display in the view.