The Analysis Web module connects to [Analysis API](https://gitlab.ics.muni.cz/granef/analysis-api) and provides web-based user interface to analyze and browse provided data.
### Requirements
- a running instance of Analysis API module
- Docker
- Docker
- running Granef analysis and handling (zero and alpha) containers
- PostgreSQL
- NodeJS
- Python3
- Python3 packages in [requirements.txt](requirements.txt)
The installation can be performed using the following command:
Use the following command to build the Docker container:
```bash
$ docker build --tag=granef/analysis-web .
```
Alternatively, you can use Docker compose to build and run the module as separate Docker images:
## Usage
```bash
Run the visualization application by executing `docker-compose up`.
$ docker-compose up
```
## Adding support for new queries
### Usage
The Docker container can be either run separately with command line arguments or as part of the Granef toolkit with arguments set in the [granef.yml](https://gitlab.ics.muni.cz/granef/granef/-/blob/master/granef.yml) configuration file.
The following arguments can be set:
| Short argument | Long argument | Description | Default |
|-|-|-|-|
|`-i`|`--input`|Dummy argument (requested by the GRANEF toolkit)||
|`-ip`|`--ip`|IP address to bind the web visualization application|`0.0.0.0`|
|`-p`|`--port`|Port to bind the web visualization application|`80`|
|`-ai`|`--api_ip`|IP address of the Granef analysis API|`granef-analysis-api`|
|`-ap`|`--api_port`|Port of the Granef analysis API|`7000`|