diff --git a/README.md b/README.md index aa9e015aac5a12193e027aba402ad65f2b27564e..bde9de55cd52bd90e1c7b3f9988c7a253b153547 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,36 @@ Development of an R-shiny application to quickly and easily analyze 16S data. -# Shiny Server -Easy16S application actualy works on a Open Source Shiny Server. -This is `/etc/shiny-server/shiny-server.conf` : +# Shiny server Installation + +Easy16S application actually works on a Open Source Shiny Server. +For shiny server installation, we follow the [Rstudio Guide](http://docs.rstudio.com/shiny-server/). + +1. Install and update R, the shiny R package and all the necessary packages + +```bash +sudo yum install R +sudo su - -c "R -e \"install.packages('shiny', repos='https://cran.rstudio.com/')\"" +sudo su - -c "R -e \"install.packages('rmarkdown')\"" +``` +2. [Download Shiny Server](https://www.rstudio.com/products/shiny/download-server/) + +```bash +wget https://download3.rstudio.org/centos6.3/x86_64/shiny-server-1.5.9.923-x86_64.rpm +``` +3. Install it with `gdebi` or `yum` according to your OS + +```bash +sudo yum install --nogpgcheck shiny-server-1.5.9.923-x86_64.rpm +``` + +If necessary, you can stoping or starting the shiny server +```bash +sudo systemctl start shiny-server +sudo systemctl stop shiny-server +``` +4. Configure shiny server + +For example, this is our `/etc/shiny-server/shiny-server.conf` : ```bash # Instruct Shiny Server to run applications as the user "shiny" run_as shiny; @@ -26,3 +54,9 @@ server { } } ``` +5. Deploy application with a `git clone` in `/srv/shiny-server/` + +```bash +cd /srv/shiny-server/ +git clone git@gitlab-ssh.irstea.fr:cedric.midoux/easy16S.git +```