Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 967 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 967 Bytes

2nicove-worker

Configuration

This project uses InfluxDB v2. This service must be running externally and an .env file needs to be created in the root of the project containing the following information:

UNICOVE_API='https://eos.greymass.com'
UNICOVE_INFLUX_URL='http://localhost:8086'
UNICOVE_INFLUX_TOKEN='yourtoken'
UNICOVE_INFLUX_ORG='organization'

Additional parameters can be also added:

UNICOVE_HTTP_PORT=3000
UNICOVE_LOG_LEVEL='debug'
UNICOVE_LOG='unicove.log'
UNICOVE_ERROR_LOG='error.log'

Development

This project uses make. To install dependencies:

make node_modules

To run in development mode

make dev

Running

Bun can compile this application down to a binary which can be run on a production server alongside the InfluxDB database. Setup the .env file (or real environmental variables) and build the app with:

make

This will output an executable binary in ./dist/2nicove.