lidaof / eg-react

WashU Epigenome Browser
https://epigenomegateway.wustl.edu
Other
66 stars 29 forks source link

questions about Embedding #290

Open ymhuang-hzau opened 1 year ago

ymhuang-hzau commented 1 year ago

HI, @lidaof The demo of Embedding failed because the link was invalid (https://target.wustl.edu/dli/eg/epgg.js).

lidaof commented 1 year ago

Hi @ymhuang-hzau sorry for that, please use the IP address for now, our IT seems configured the wrong IP address for that domain. http://128.252.217.138/dli/eg/

ymhuang-hzau commented 1 year ago

Thank you, @lidaof . I can use this demo now! By the way, Can I add my own 'geneannotation' in this demonstration? I mean, I'm not a React user, but I want to use my own API.

lidaof commented 1 year ago

Hi @ymhuang-hzau of course you can, you would need to modify the API URL in GeneSource.js file with your own API URL.

ymhuang-hzau commented 1 year ago

Thank you @lidaof . With your help, I used the "npm run setup" command to import genome data into the mongodb. But after I type "npm start", the API can only run locally (localhost:3001). What can I do to make it run online like your website (https://lambda.epigenomegateway.org/v2)?

ymhuang-hzau commented 1 year ago

Here, based on epgg, I load the cotton genome on my website (http://yanglab.hzau.edu.cn/browser/).

lidaof commented 1 year ago

Hi @ymhuang-hzau nice! for the API I would suggest you to get some API service in aliyun cloud. Or you can use some reverse proxy to redirect for example http://yanglab.hzau.edu.cn/api to http://yanglab.hzau.edu.cn:3001. you can google it, there are many solutions based on either Apache or Nginx. feel free to let me know if you need any help.