Shiny app to visualize and extract data from SNO-Tourbières database : https://data-snot.cnrs.fr/data-access/
You can install the released version of dataAccessApp with:
devtools::install_github("Rosalien/dataAccessApp")
dataAccessApp works with a postgresql database build with data-snot.cnrs.fr. To test dataAccessApp, you can used a dump of database test with these parameters :
language <- "en" #'en' or 'fr'
pool <- "dbconfProd.yaml" #yaml of database configuration
dataAccessApp::run_app(language,pool)
Copy/paste package folder into shiny-server folder
git clone https://github.com/Rosalien/dataAccessApp.git
cp -r dataAccessApp/* to/the/Shiny-server/folder/
Modify app.R
for language and database configuration :
language <- "en"
pool <- "dbconfProd.yaml"
dataAccessApp::run_app(language,pool)
Build and run database test :
cd inst/extdata/
docker build -t snodb .
docker run -d --name snodbrun -p 5433:5432 snodb:latest
docker exec -i snodbrun pg_restore --clean --dbname sno -h localhost -p 5432 -U snouser < snotest.dump
Build dataAccessApp :
docker build -t dataaccessapp .
Deploy dataAccessApp :
docker run --net=host dataaccessapp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.