https://github.com/cpsievert/apps
Carson Sievert's web applications
https://github.com/cpsievert/apps
flask flask-application javascript python r shiny
Last synced: 29 days ago
JSON representation
Carson Sievert's web applications
- Host: GitHub
- URL: https://github.com/cpsievert/apps
- Owner: cpsievert
- License: mit
- Created: 2013-01-28T20:46:00.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2018-07-18T16:42:26.000Z (almost 7 years ago)
- Last Synced: 2025-03-18T01:07:13.501Z (about 1 month ago)
- Topics: flask, flask-application, javascript, python, r, shiny
- Language: JavaScript
- Homepage: http://206.189.192.6:8080/
- Size: 1.55 MB
- Stars: 80
- Watchers: 9
- Forks: 60
- Open Issues: 4
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - cpsievert/apps - Carson Sievert's web applications (JavaScript)
README
---
output: github_document
---# My web applications
![]()
![]()
![]()
This repo contains code for building and deploying [web applications](https://en.wikipedia.org/wiki/Web_application) (e.g. [shiny](https://cran.r-project.org/package=shiny), [fiery](https://cran.r-project.org/package=fiery), and [flask](http://flask.pocoo.org/)) that I've developed for public consumption.
## Run an app (as a docker container)
Each app has it's own [Docker](https://www.docker.com/) container, as well as a [image tag on DockerHub](https://hub.docker.com/r/cpsievert/apps/builds/), so you can easily run apps on your local machine; for example, this will run the [zikar (shiny) app](https://github.com/cpsievert/apps/tree/master/shiny/apps/zikar) on
```shell
docker run -p 3838:3838 cpsievert/apps:shiny-zikar
```If you'd like to run a particular app in this repo, you can get the relevant image tag from the [`application.yml`](https://github.com/cpsievert/apps/blob/master/application.yml) file.
## Acquire all the app images
To run all the applications, you'll need to pull (or build) all the corresponding docker images. A necessary first step is to pull (or build) the corresponding docker images. Either way, I'd suggest cloning this repo:
```shell
git clone https://github.com/cpsievert/apps.git
cd apps
```Now you can run the `make` command to *build* all the images or `make pull` to pull them from [my registry](https://hub.docker.com/r/cpsievert/apps/).
## Run all the apps via shinyproxy
The [`application.yml`](https://github.com/cpsievert/apps/blob/master/application.yml) can be used/modified to (securely) run all the applications as a service via [shinyproxy](https://www.shinyproxy.io/). See my blog post (coming soon).
```shell
wget https://www.shinyproxy.io/downloads/shinyproxy-1.0.1.jar
java -jar shinyproxy-1.0.1.jar
```## Contributing
Some guidelines for adding new apps:
### shiny
* Run `make shiny app=my-app` (replacing `my-app` with a suitable name).
* Place your shiny app under the new `shiny/apps/my-app` directory.
* Ensure the Dockerfile has the right system/R requirements (`rsconnect::appDependencies()` can be helpful during this step).
* Add `docker build -t cpsievert/apps:shiny-my-app shiny/apps/my-app` to the [Makefile](https://github.com/cpsievert/apps/blob/96aa5dcf/Makefile#L3)
* Under [apps](https://github.com/cpsievert/apps/blob/96aa5dcf/application.yml#L16) in the `application.yml` file, add your app's name, description, etc.