README.md 696 Bytes
Newer Older
Hanadi's avatar
Hanadi committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Traffic History Job

## Requirements
* `node: ^14.8.0`
* `npm: ^6.14.8`

## Configuration
1. Run FROST Server making sure that it uses String Ids, see [`docker-compose.example.yaml`](docker-compose.example.yaml).
2. Export Here API Key `HERE_API_KEY` and FROST server url `FROST_URL` (with version postfix) as environment variables, e.g.
    ```shell
    export HERE_API_KEY=yYTMvf0L2oXCvETw6FLzNnr-GjfEd_TO6Fv_YG-v7ps
    export FROST_URL=http://localhost:8080/FROST-Server/v1.1
    ```
3. Install dependencies:
   ```shell
    npm install
    ```
3. For development, run `npm start` to start a `ts-node` server.
4. For production:
   ```shell
   npm run build
   node build/index.js
    ```