hms-dbmi / vizarr

A minimal Zarr image viewer based on Viv.
https://hms-dbmi.github.io/vizarr/?source=https://minio-dev.openmicroscopy.org/idr/v0.3/idr0062-blin-nuclearsegmentation/6001240.zarr
MIT License
123 stars 18 forks source link

feat: open vizarrr with default view (in dev) #133

Closed manzt closed 2 years ago

manzt commented 2 years ago

There is no default dataset when the dev server starts -- npm start (vite). The PR adds a default open url to launch in the browser. It also adds a VIZARR_DATA environment variable to change this dataset.

Usage:

npm start # opens http://localhost:3000/?source=https://s3.embassy.ebi.ac.uk/idr/zarr/v0.1/6001253.zarr
VIZARR_DATA=https://s3.embassy.ebi.ac.uk/idr/zarr/v0.1/9836831.zarr npm start