How to Deploy Your Own Shiny Apps Using ShinyProxy

Oct 30, 2021 | Programming

ShinyProxy is an open-source tool that allows you to deploy Shiny applications in an enterprise setting. If you are looking for a way to run your Shiny apps seamlessly for your team or users, this guide will walk you through the steps to build and run ShinyProxy from source.

Building ShinyProxy from Source

To get started, you need to clone the ShinyProxy repository and build the application. Here’s how:

  • Clone the repository to your local machine.
  • Run the following command to build the project:
mvn -U clean install

The above command utilizes Maven to clean any previous builds and install ShinyProxy. Upon successful execution, a single `.jar` file will be created in the target directory.

Running the Application

Once the application has been built, it’s time to run it. Use this command to start ShinyProxy:

java -jar shinyproxy-3.0.0.jar

After running this command, navigate your web browser to http://localhost:8080. This is where you can access your deployed Shiny application.

Authentication with ShinyProxy

If you are using the default configuration, ShinyProxy will authenticate against an LDAP server. To log in, use the following credentials:

  • Username: tesla
  • Password: password

Troubleshooting

If you encounter issues while building or running ShinyProxy, consider the following tips:

  • Ensure Maven is installed and configured correctly on your machine.
  • Check for any errors in the terminal during the build process and address them accordingly.
  • Make sure that the Java Runtime Environment (JRE) version is compatible with the ShinyProxy version you are running.
  • If localhost:8080 is not accessible, confirm that the application is running without firewall restrictions.

For persistent issues, you might find help in the ShinyProxy community or online forums specific to Shiny deployments. For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.

Conclusion

At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

Stay Informed with the Newest F(x) Insights and Blogs

Tech News and Blog Highlights, Straight to Your Inbox