# This Hello World example will serve a jug instance on the default port.
# The jug instance will return "Hello World!" if a GET request is send to it.
jug() %>%
get("/", function(req, res, err) "Hello World!" ) %>%
simple_error_handler_json() %>%
serve_it(verbose=TRUE)
# Introduction to jug
vignette("jug", package="jug")
Run the code above in your browser using DataLab