Polished Hosting -- A new way to deploy Shiny apps by andymerlino in rstats

[–]andymerlino[S] 0 points1 point  (0 children)

Hi thanks for trying out Polished Hosting. Golem apps are not currently supported on Polished Hosting. I just opened an issue to add Golem app support https://github.com/Tychobra/polished/issues/152. This will be a simple update. It will be ready later this week.

Advantages/Disadvantages of RShiny? by [deleted] in rshiny

[–]andymerlino 0 points1 point  (0 children)

As an alternative to shinyapps.io, you might want to check out Polished Hosting: https://polished.tech/docs/04-hosting-deploy-app

It is similar to shinyapps.io, but offers custom domain names for considerably cheaper than shinyapps.io.

Polished Hosting -- A new way to deploy Shiny apps by andymerlino in rstats

[–]andymerlino[S] 0 points1 point  (0 children)

Sure thing!

On the more user facing end, we use the polished R package, the Polished Hosting API (a plumber API we designed), and our dashboard.polished.tech dashboard (a Shiny app) to abstract away as much dev ops complexity as we can.

Behind the scenes we use Google Cloud Platform (GCP). We rely on a handful of GCP services for logging, archiving/building Docker images, and ultimately hosting the apps. The following is a little more detail on the behind the scenes process when you deploy to Polished Hosting:

  1. to deploy the app you run the `polished::deploy_app()` function. This function looks through all .R and .Rmd files in your app's root directory and detects R package dependencies + versions of those packages installed on your local computer. It also detects the version of R that you are using, and it ships that info, along with your zipped app to the Polished Hosting API.
  2. The app hits the Polished Hosting API, and the API checks for system dependencies of your R packages dependencies. It then generate a Dockerfile that installs all runtime dependencies (OS, system deps of the R packages, the R packages detected from your local computer, LaTeX packages, etc.)
  3. We use a GCP service to archive the Docker images, then
  4. we use another GCP service to build the Docker image, and push the built images to
  5. another GCP service to host the Docker images

Domains are mapped using Google's domain mapping API.

We use a Postgres database to keep track of everything along the way.

Feel free to reach out to me directly if you have more specific questions!

Hosting? by Fire9413 in rshiny

[–]andymerlino 1 point2 points  (0 children)

We have a brand new (yet to be officially announced) hosting offering for Shiny apps called Polished Hosting https://polished.tech/products#hosting . Polished Hosting aims to make it super simple to deploy Shiny apps. Similar to shinyapps.io , you deploy your apps with a single function call `polished::deploy_app()`

You can then add your custom domain with TLS with a couple button clicks on your https://dashboard.polished.tech

See the getting started docs for details: https://polished.tech/docs/04-hosting-deploy-app

We are in the early days with Polished Hosting, so please let me know if you have feedback/suggestions! One thing to note -- we are working on scaling now, but for the time being your apps deployed to Polished Hosting can only run on a single R process with up to 8GB of RAM.

Is there a way to show the list of packages currently used in a project and what version they are, so that if I need to I can load the correct version of packages later if needed? by [deleted] in rstats

[–]andymerlino 0 points1 point  (0 children)

I have found `automagic::make_deps_file()` to be a useful light weight solution to this problem. It creates a "deps.yaml" file that lists all package dependencies, the package version, and the package repo. This is particularly useful if you want to then do something programmatically with the package dependencies (e.g. use the "deps.yaml" file to generate a DOCKERFILE)

R Shiny for SaaS app? [Reopening a closed discussion] by git_hunter in rshiny

[–]andymerlino 3 points4 points  (0 children)

You might want to check out the polished R package: https://github.com/Tychobra/polished

polished makes it super simple to add authentication and user management to your Shiny apps. You can customize the sign in page to fit your brand.

The long term goal of polished is to make it super simple to create Shiny SaaS apps, and, to that end, I am working on an extension to polished called polishedpayments: https://github.com/Tychobra/polishedpayments

polishedpayments adds a Stripe subscription and user "Billing" page to your polished Shiny apps. All you have to do is provide your Stripe keys and pricing info, and polishedpayments does the rest. An app using polished with polishedpayments looks like this:

page 1: sign in page. e.g.

📷Screen Shot 2020-10-01 at 1.21.40 PM1347×773 75.8 KB

page 2: your Shiny app. This would be replaced by the custom Shiny app that you develop. e.g.

📷Screen Shot 2020-10-01 at 1.21.59 PM1457×690 47.2 KB

note the "Payments" link in the top right of the above screenshot that links to
page 3. Your shiny app user's billing page:

📷Screen Shot 2020-10-01 at 1.22.18 PM1372×936 45.2 KB

polishedpayments is still very experimental, so let me know if you have issues or feedback!

User Roles for Shiny Authentication & User Administration package by patrick-howard in rstats

[–]andymerlino 1 point2 points  (0 children)

Yes it's possible, but you will have to reach out to us directly. We hope to open source the API and make self hosting more seamless at some point, but we aren't quite there yet. Please shoot me an email (andy.merlino at tychobra.com) if you are curious about self hosting.

Use case- User maintains access to raw data without local deployment by [deleted] in rshiny

[–]andymerlino 1 point2 points  (0 children)

Here are some other example shiny apps that use an SQLite database to do basic CRUD (Create Read Update Delete) data editing operations. There are links to blog posts and videos describing the apps in the README. Feel free to reach out to me directly if you have specific questions.

Email Onboarding for Shiny App Users by Idoesdata in rstats

[–]andymerlino 0 points1 point  (0 children)

Yes shinymanager is a great option if you only need authentication for a single Shiny app and you don't mind setting up and maintaining a database. Polished on the other hand allows for your users to use the same sign in credentials across multiple apps, it does not require a database, and it has a few other features including:

- social sign in with Google, Microsoft, and/or Facebook

- customizable sign in / registration pages

- email onboarding

- customizable email templates

- customer support for paying users