This is an initial example and exploration of how you can connect the Flourish API together with other data analysis and visualisation tools.
- A working knowledge of both Javascript and R
- A Flourish account (quickly sign up here if you don't have one)
- Flourish API keys
- RStudio or some other IDE that can run a Shiny app
Clone this repository and install its dependencies:
git clone https://github.com/kiln/shiny-survey.git
cd shiny-survey
npm install
The R side of this example uses four packages (shiny, dplyr, magrittr, jsonlite). If you don't have them installed, before you begin, open the RStudio console and run:
install.packages("dplyr")
install.packages("jsonlite")
install.packages("magrittr")
install.packages("shiny")
To start the Shiny server, in the RStudio console, run:
install.packages("shiny"); # if not already installed
shiny::runApp(".")
To start the template server, in the terminal, run :
npm run start