- Create a project and set it up for App publishing
- Publish a simple two file Shiny App to make it globally discoverable
- Observe how other users in Domino can use the App
Set up the Project
The first step is creating a project with the settings and content you need to publish your App.- From the home page, click Develop > Projects.
- Click New Project.
- Give your project an informative name, choose the Private visibility setting, then click Create Project.
- Click Settings in the project sidebar, then set the Compute environment to Domino Standard Environment Py3.8 R4.1. Read Domino standard environments to learn more about the contents of this base image.
- Click Code in the project sidebar, then click Add File.
-
Name the file
server.Rin the title field above the editor. It’s important that the file be named exactly this, as launching Shiny application with two files, requires a directory to contain files namedserver.Randui.R. -
In the body of the file, paste the following example Shiny server code.
- Click Save when finished.
-
Click Add File again, and name the new file
ui.R. -
Paste in the following content, then click Save when finished.
-
The last thing to do before publishing your App is to create an
app.Rfile. This is a script that Domino runs after initializing the host that serves your App. It should contain all commands required to launch your App. In this example, the only command you need is:Take note of thehostandportparameters in this command - this is where Domino directs users to your application. Apps in Domino must run with a host of0.0.0.0. However, port selection is flexible and port8888is no longer required. Create theapp.Rfile the same way you did forserver.Randui.R, then save it.
Publish an App
- Click Deployments > *Apps & Agents from the project sidebar.
- Give your App an informative title and description, and set Permissions to Anyone can access. This allows anyone with a network connection to your Domino deployment to access the App if they have the URL.
-
Select
app.Ras your app file. - Click Publish.
- After the App status says “Running”, click View App to load your App.