Skip to content

Latest commit

 

History

History

spa

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Demo

You can try the live demo hosted on GitHub Pages here.

Getting Started for Development

Prerequisites

  • Node.js (>= 12.x)
  • pnpm package manager

Installation

  1. Clone the repository:
git clone https://github.com/docmaps-project/docmaps
cd docmaps/packages/spa
  1. Install dependencies:
pnpm install

Running the tests

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.

Running the App

To start the development server:

pnpm run dev

Then navigate to http://localhost:8080 in your browser.

Deploying to GH Pages

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.

Built With

  • Svelte - The web framework used
  • render-rev - Display component built by EMBO
  • pnpm - The package manager

Contributing

See the main repository contributing guidelines.

License

See main repository license.

Acknowledgments

Screenshots

DocMap for Posted Preprint

DocMap for Published Preprint

DocMap for Published/Reviewed Preprint (note linear issues)

DocMap for Refereed Preprint