Skip to content

far-edge/data-router-and-preprocessor

Repository files navigation

Data router and preprocesser is the FAR-EDGE component that enables the edge gateways to interact with field devices.

REQUIREMENTS

CLONE

git clone [email protected]:far-edge/data-router-and-preprocessor.git

CONFIGURE

Create .env based on .env.example.

cp .env.example .env

Edit .env.

CREATE THE VIRTUAL ENVIRONMENT

cd data-router-and-preprocessor
nodeenv -n 10.1.0 --prebuilt env

ACTIVATE THE VIRTUAL ENVIRONMENT

. env/bin/activate

INSTALL THE DEPENDENCIES

npm install

RUN

npm start

DEACTIVATE THE VIRTUAL ENVIRONMENT

deactivate_node

LINT

npm run lint

TEST

npm test

GENERATE THE DOCUMENTATION

npm run doc