blob: bd24adc2fe4d3d0e835a54ff4dbf24caf9ec0a2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# brokentalents.fun
## Setup
* `npm install`
* create backend/secret.js as `module.exports.apikey = 'yourapikey';` or export the env var `API_KEY=""`
## Updating the data
`npm run backend`
## Overview

The `/matches` endpoint is called in equidistant intervals for a small set of matches. An hour of each set is aggregated and stored in a timestamped json. All timestamped jsons are aggregated and generate the output report json.
The code was written with [Ramda](https://ramdajs.com) as an excercise in functional programming with JavaScript.
|