lidaof/eg-react

questions about Embedding

ymhuang-hzau opened this issue · 6 comments

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

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/

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.

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

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)?

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

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.