iVis-at-Bilkent / sbgnviz.js

A web based visualization tool for process description maps in SBGN
http://www.cs.bilkent.edu.tr/~ivis/SBGNViz_sample_app/
GNU Lesser General Public License v3.0
35 stars 14 forks source link

Replace PHP code #160

Closed IgorRodchenkov closed 7 years ago

IgorRodchenkov commented 8 years ago

Why to mix-in PHP code with this app? It implicitly required deployment onto a specific app server or http server (Apache/Tomcat) and makes sbgnviz hard to use as component/module of another web app...

Looks, it's not to difficult to replace BioGeneQuery.php with an equivalent JS function...

istemi-bahceci commented 8 years ago

You are right, PHP code makes integration dificult. I will experiment changing the PHP part if possible.

IgorRodchenkov commented 8 years ago

Well, e.g., I integrated (sorry for re-organizing sub-folders and moving/merging files) sbgnviz-js viewer 2.0.3 into another web app project (yet unfinished) and successfully made the BioGene qtips work without having BioGeneQuery.php - see this modified function.

But for this to work, for development, I had to also set up a temporary proxy for http://cbio.mskcc.org/biogene/retrieve.do, as it seems that CORS is not enabled/allowed there on the cbio biogene (cross-origin AJAX queries are not allowed). We (or you) could configure a permanent proxy (e.g., using Apache or NGINX) for the BioGENE service, with cross-origin enabled, if that's a problem...