Call Python Flask API from RShiny on shinyproxy

Job ID: 33876180

Budget: $30 – $250 USD

I have simple reprex (https://github.com/martinkabe/shinyproxy-rshiny-flask-demo) of RShiny application which calls GET and POST request via httr package to Python Flask flask_restx. The application works fine in docker but I'm not able to run docker image on shinyproxy.

Looks like there is some discrepancy between ports. Python flask API runs on port 5000 and I'm calling it from RShiny such that: http://localhost:5000/. And this doesn't work. This configuration for calling flask API from RShiny is in https://github.com/martinkabe/shinyproxy-rshiny-flask-demo/blob/master/frontend/global.R.

The main goal of this task is to make this application work on shinyproxy, not only in docker.

How to run docker image from shinyproxy is in https://github.com/martinkabe/shinyproxy-rshiny-flask-demo/blob/master/info.md.

Download shinyproxy-2.6.1.jar from here:
https://www.shinyproxy.io/downloads/shinyproxy-2.6.1.jar java -jar shinyproxy-2.6.1.jar
Related categories: Python R Programming Language Docker Flask