Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Sep 26, 2024
1 parent b3a8648 commit 891237a
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,29 @@
![GitHub License](https://img.shields.io/github/license/seroanalytics/serovizr)
<!-- badges: end -->

R API for the SeroViz app. Based on the [porcelain](https://github.com/reside-ic/porcelain) framework.
R API for the SeroViz app. Based on the [porcelain](https://github.com/reside-ic/porcelain) and [plumber](https://github.com/rstudio/plumber) frameworks.

## API Specification
Docs are available when running the API locally on port 8888, via
```
http://127.0.0.1:8888/__docs__/
```

The easiest way to run the API locally is via Docker:

```
docker run -p 8888:8888 seroanalytics/serovizr:main
```

Alternatively, to run from R, first clone this repo and then from this directory run:

```r
devtools::load_all()
serovizr:::main()
```

The docs are maintained via an [openapi](https://www.openapis.org/) specification
contained in `inst/spec.yaml`, and [JSON Schema](https://json-schema.org/) files in `inst/schema`.

## Developing
Install dependencies with:
Expand All @@ -35,20 +57,20 @@ devtools::test()

To build a Docker image:

``` r
```
./docker/build
```

To push to Dockerhub:

``` r
```
./docker/push
```


To run a built image:

``` r
```
docker run -p 8888:8888 seroanalytics/serovizr:<branch-name>
```

Expand Down

0 comments on commit 891237a

Please sign in to comment.