firesale
firesale is a plugin for fiery that provides a (potentially persistent) data store based on path parameters and client id.
It builds upon the storr package and thus provides a multitude of storage backends to suit your need while providing the same interface for your server logic.
Installation
# You can install marquee from CRAN
pak::pak("firesale")
# Or get the development version from Github
pak::pak("thomasp85/firesale")Example
Using firesale is quite simple. You initialise the plugin and then attach it to your fiery server:
library(firesale)
ds <- FireSale$new(storr::driver_environment())
ds
#> <FireSale plugin (environment)>Once created you attach it like any other plugin
app <- fiery::Fire$new()
app$attach(ds)
app
#>