ambiorix-web / ambiorix

🖥️ Web framework for R
http://ambiorix.dev
GNU General Public License v3.0
211 stars 9 forks source link
ambiorix r rstats webframework
# ambiorix [![R-CMD-check](https://github.com/ambiorix-web/ambiorix/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ambiorix-web/ambiorix/actions/workflows/R-CMD-check.yaml) [![Codecov test coverage](https://codecov.io/gh/ambiorix-web/ambiorix/branch/master/graph/badge.svg)](https://app.codecov.io/gh/ambiorix-web/ambiorix?branch=master) [Website](https://ambiorix.dev) | [CLI](https://github.com/ambiorix-web/ambiorix-cli) | [Generator](https://github.com/ambiorix-web/ambiorix.generator) | [Docker](https://hub.docker.com/r/jcoenep/ambiorix) | [Load Balancer](https://github.com/ambiorix-web/belgic) Web framework for R based on [httpuv](https://github.com/rstudio/httpuv) and inspired by [express.js](https://github.com/expressjs/express).

Example

library(ambiorix)

app <- Ambiorix$new()

app$get("/", function(req, res){
  res$send("Hello!")
})

app$get("/about", function(req, res){
  res$send("About page")
})

app$start()

Middlewares

Tools & Extensions

Install

The stable version is available on CRAN with:

install.packages("ambiorix")

You can also install the development version from Github:

# install.packages("ambiorix")
remotes::install_github("ambiorix-web/ambiorix")

Contributing

Please note that the ambiorix project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.