Goals
This is a frontend for example 09_goals. Built using {shiny}.
Features
- Auth:
- Custom sign up & login pages
- Cookies: Auto-login next time you visit/reload the app
- APIs:
- Make API requests to the backend using
{httr2} - Handle any request errors gracefully via
tryCatch()
- Make API requests to the backend using
Run app
First make sure that the backend is running. See how here.
cdinto the dir12_shiny_frontend_for_09_goals/:cd 12_shiny_frontend_for_09_goals/Fire up R & restore pkg dependencies:
renv::restore()Add these env vars to your
.Renviron:BASE_URL = http://127.0.0.1:5000 RENV_CONFIG_SANDBOX_ENABLED = FALSEapp.Ris the entry point. Run this on the terminal to start the app:Rscript app.R