view docs/DEVELOPMENT.md @ 2762:f95ec0bb565c

Added endpoint to deliver average waterlevels for a given gauge. GET /api/data/average-waterlevels/{GAUGE}?from={FROM}&to={TO} from and to are optional and defaults to end of today and going a year backwards. Output is CSV in form of #date,#min,#max,#mean,#median,#Q25,#Q75
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 21 Mar 2019 18:07:49 +0100
parents 9d6ba97a31d2
children b195bc79e3e8
line wrap: on
line source

# Development

## Backend

You need a working [Go](https://golang.org/dl) build environment (1.10+).

* Install dependencies

    `sh 3rdpartylibs`

* Build

    Prerequesite: compile server
    ```
    cd cmd/gemma/
    go build
    cd ../../
    ```

* Run
    Run server with  `./cmd/gemma/gemma`

## Client

See [client/README](../client/README.md) for details.