NIAGADS / niagads-viz-js

NIAGADS visualizations
GNU General Public License v3.0
0 stars 0 forks source link
javascript-library react visualization

NIAGADS Visualization Toolkit

React Component Library for NIAGADS Visualizations: including Tanstack React-Tables with GUI-driven filtering and custom adapters for LocusZoom.js that query NIAGADS APIs

WARNING: for third-party developers. This toolkit is still under development and not ready or recommended for general usage

NOTE: until Material-UI is removed, npm install must be run with the --legacy-peer-deps option.

Component Library Build for Development

git clone https://github.com/NIAGADS/niagads-viz-js.git 
cd niagads-viz-js
npm install --legacy-peer-deps
npm run build

Import Component Library into 3rd-Party App

npm install git+https://github.com/NIAGADS/niagads-viz-js.git --legacy-peer-deps

To install a specific branch:

npm install git+https://github.com/NIAGADS/niagads-viz-js.git#BRANCH --legacy-peer-deps

StoryBook

git clone https://github.com/NIAGADS/niagads-viz-js.git 
cd niagads-viz-js
npm install --legacy-peer-deps
npm run storybook

Auto-Doc

npm run storybook-doc

Run example app

NOTE: Requires next.js: you may need to pre-install next npm package

git clone https://github.com/NIAGADS/niagads-viz-js.git 
cd niagads-viz-js/example
npm install --legacy-peer-deps

Dev

npm run dev

Prod

npm run start

Developer Notes

VSCode Configurations

Tailwind

VSCode will not understand tailwind @ directives (@tailwind) out of the box. Recommendations are as follows:

{
  "files.associations": {
    "*.css": "tailwindcss"
  }
}

JavaScript Configuration

CORS

Storybook needs to query GenomicsDB API for LocusZoom

see .storybook/middleware.js for proxy configuration

TODOs: proxy for example app

TODOs/Issues