Skip to content

umccr/htsget-igv.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local development environment for IGV.js + htsget-rs

Production htsget-rs servers can be deployed to several cloud providers via htsget-deploy, however a local dev environment that bypasses CORS for convenience is very useful.

WARNING: Never use this environment in production, this is only meant for localhost-only debugging and development.

Quickstart

Assuming you have docker-(compose) installed on your local machine, run this one time one liner:

git clone --recursive https://github.com/umccr/htsget-igv.js && \
cd htsget-igv.js && \
(cd igv.js && npm install)

Tilt up the docker containers:

docker compose up

Open the browser:

open http://localhost:8787/dev/htsget/htsget.html

If all goes well, you should see the following:

htsget_allowed_regions

Browser config

Even if CORS is effectively disabled at the server level in this configuration's repo (see compose.yml's environment directive for details), some browsers will required a bit of settings tweaking, namely:

Firefox

Will work right away :D

Please report if that's not the case for you?

Safari

Will currently not work due to restrictions around the use of 0.0.0.0.

safari

Brave

Will only work if its implicit Ad-blocking system is disabled as shown below.

brave brave

About

Locally develop with htsget-rs and IGV.js without CORS nuisances: NOT FOR PRODUCTION

Topics

Resources

Stars

Watchers

Forks

Languages