Skip to content

Implementation

Efra Espada edited this page Sep 30, 2018 · 4 revisions
npm install @efraespada/turbine --save

Dependencies used.

Initialization

Define the list of databases to manage in databases index.

const Turbine = require('@efraespada/turbine');
let turbine = new Turbine({
    "turbine_port": 4004,
    "turbine_ip": "http://localhost",
    "databases": ["database"],
    "debug": true
});

turbine.server();

Once Turbine is started, data folder is created to manage and store data. This package contains server and client methods. For external node processes install and implement Turbine for use client methods.

Kill Blocked Processes

sudo kill `sudo lsof -t -i:4006`