We've taken the iGuide dataset landing page and configured it so that it renders a single dataset.
Dataset rendered is public/dataset.js. Note that this is a .js
file. This file should export a default JS object named dataset
.
To create the static bundle of files:
nvm use 14
npm install
npm run build
This will build everything into dist/
. You can throw the contents of dist/
into a bucket and if the bucket is made public, opening the index.html
file should render the dataset in the browser (note this depends a bit on the bucket provider and base urls).
Alternatively, you can use the file protocol locally: just open dist/index.html
in your browser.
The dataset.js
file is NOT included in the vue cli bundling intentionally, so that after building, one can modify the dist/dataset.js
file and any edits will be rendered by the static bundle without rebuilding.
npm install
npm run serve
npm run build
npm run lint