Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mayer79/plumber
Demo of the R package "plumber". How to deploy web services in R
https://github.com/mayer79/plumber
Last synced: 15 days ago
JSON representation
Demo of the R package "plumber". How to deploy web services in R
- Host: GitHub
- URL: https://github.com/mayer79/plumber
- Owner: mayer79
- Created: 2019-04-04T16:36:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-13T07:17:09.000Z (over 5 years ago)
- Last Synced: 2024-10-04T12:57:06.318Z (3 months ago)
- Language: R
- Size: 7.16 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# plumber
Demo of the R package "plumber". How to deploy web services in R including SSH encryption.How to test: Run script "make_model.R" to generate the model first. Then run "main.R" to set up a local R server that can either be called
- from within R-Studio through a mini-GUI or
- from the console or
As soon as it works, you can use the "dockerfile" to run the same app from within a Linux container:
1. Install and register Docker
2. Open powershell in the folder where "dockerfile" sits.
3. Build an image by running "docker build -t plumber_auth_ssl ." (without quotes, but with the dot)
4. Start a container by entering "docker run --rm -p 80:80 -p 443:443 plumber_auth_ssl" (rm removes the container automatically on stop)
5. Open a browser and enter e.g. "http://localhost/predict_price?carat=0.4" to get the expected price of a 0.4 carat diamond.
6. Stop all running containers by entering "docker stop $(docker ps -a -q)" into powershell. Entering "docker ps -a" lists all containers.
Credits to https://qunis.de/how-to-make-a-dockerized-plumber-api-secure-with-ssl-and-basic-authentication/