Docmap Visual Playground
This Docmap visualizer is a simple stateless single-page web app that allows you to visualize a docmap based on our Crossref-to-Docmap ETL library. You can plug in any DOI, and if Crossref knows about it and it has reviews or a preprint, you'll get some interesting content back.
You can try the live demo hosted on GitHub Pages here.
- Node.js (>= 12.x)
- pnpm package manager
- Clone the repository:
git clone https://github.com/docmaps-project/docmaps
cd docmaps/packages/spa
- Install dependencies:
pnpm install
To run tests:
pnpm test
Note that you need an installation of Chrome, and must set
the CHROME_PATH
variable. If you use Chromium, it might be something like
/usr/local/bin/chromium
.
To start the development server:
pnpm run dev
Then navigate to http://localhost:8080
in your browser.
The Github Pages is deployed from the gh-pages
workflow in repository root. This workflow is called
by the release
workflow and is only triggered on merge to main. It first builds/bundles this package,
then deploys the bundle. Note that because the repo name disagrees with the package name, the index.html
is modified to use relative paths for all bundled resources.
- Svelte - The web framework used
- render-rev - Display component built by EMBO
- pnpm - The package manager
See the main repository contributing guidelines.
See main repository license.