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.
cd
into the dir12_shiny_frontend_for_09_goals/
:cd 12_shiny_frontend_for_09_goals/
Fire up R & restore pkg dependencies:
::restore() renv
Add these env vars to your
.Renviron
:= http://127.0.0.1:5000 BASE_URL = FALSE RENV_CONFIG_SANDBOX_ENABLED
app.R
is the entry point. Run this on the terminal to start the app:Rscript app.R