With the help of this Tutorial I published my little Netflix-Plots Dashboard Project as a clientside Application via Github Pages.
The linked tutorial has some typos in the code. I included the (very few) lines of code for creating the files in the docs folder at the top of my app.R
- Make 2 new folders called "app" and "docs" in your main folder.
- Rename the shiny-app file to "app.R" and move it into the "app" folder
- Now open the "app.R" in R-Studio and execute the following via the console:
library(shinylive)
after that
shinylive::export(appdir = "app", destdir = "docs")
- Now head over to Github and make your repository with the two folders public
- In the "settings" of the repository open the github-pages tab on the left side
- As the "Branch" choose "main", after that "docs" and then save your choice
- Now wait a few minutes, reload the page and you will see the link on top of the "pages" tab wich you can use to access the shiny-app
Despite the downside of extremely long time it takes to load this is by far the better method for publishing small apps like this one for friends or colleagues then using shinyapps.io (like i did before). Keep in mind that the free tier of shinyapps.io is also only made for small and simple projects. This method is as fast to deploy like shinyapps.io and because of the the nature of the shiny-server being clientside its possible to make your project public and keep the link up for eternity.
Make yourself a tea, it takes a while to load. Here is the Link for the Dashboard: https://thhaase.github.io/R_Clientside_Shiny_Netflix_History/