Data Proxy Set Up
Data proxies are a concept introduced in Peerplays blockchain to anonymize input data feeds. For now we are using the same to anonymize sports data feeds in a decentralized manner. This document provides setup instructions.
We are assuming Ubuntu 18.04 LTS and Python3.X available by default as the versions to be supported.
Prepare the servers
- Update and upgrade the server with the correct packages
- Get the code
The data proxy configuration file should be at the top level folder, ie bos-dataproxy-legacy. The sample file
config-example.yamlcan be copied to
- Install the necessary package by running
run_dev_server.sh. This calls
setup.sh internally to assemble everything.
PS: for production this will be run_production_server.sh
These steps will install the necessary packages. Now for every feed provider, we will have to use the Provider functionality and write wrappers to fetch the code. Once the code is fetched, this will be normalized and passed on to the BOS component.
Running the dev environment using the following command starts the general environment.
For example, using Scorespro as a provider:
make sure that the configuration file
config-dataproxy.yamlis in the working directory and run the following command. The above script is a wrapper. Example configuration file is provided.
We have code available for a few other data feed providers which is available on request.
For additional providers, we need to pull or receive push data and then write a wrapper to handle it.
We can use the
screencommand to start the above commands in daemon mode.
To be added. Not mandatory unless the status needs to be published.