1.0.4 • Published 1 year ago

rqlited-spawn v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

rqlited-spawn

npm

Installation

npm i rqlited-spawn

Usage

const startRqliteNode = require('rqlited-spawn');

async function main() {
    // start two nodes
    const node1 = await startRqliteNode({
      data: 'data',
      api: 4001,
      raft: 4002,
      timeout: 10000
    });

    const node2 = await startRqliteNode({
      data: 'data2',
      api: 4003,
      raft: 4004,
      timeout: 10000,
      leader: 'localhost:4002'
    });

    // stop them
    node1.kill();
    node2.kill();
}

License

MIT

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago