Socket
Book a DemoInstallSign in
Socket

coinstac-server-core

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coinstac-server-core

COINSTAC core server functionality.

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
3
Created
Source

COINSTAC Server Core

COINSTAC core server functionality. Documentation.

Install

Install in your project to use programmatically:

npm install coinstac-server-core --save

Or, install globally for easy CLI use:

npm install coinstac-server-core

Usage

Official API documentation may be found here.

Programmatically

This library has one chief export, a server function:

const coinstacServerCore = require('coinstac-server-core');

constacServerCore({
  // External database URL:
  dbUrl: 'https://my-cloud.cloudant.com/',

  // Keep local docs memory (using memdown):
  inMemory: true,

  // Seed the consortia database:
  seed: [{/*...*/}, {/*...*/}]
})
  .then(remotePipelineRunnerPoolInstance => { ... })
  .catch(error => console.error(error));

CLI

Use the coinstac-server-core utility. Pass the --help flag to see all the options:

$ coinstac-server-core --help

  Usage: coinstac-server-core [options]

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    -db, --database [value]  Database connection string
    -m, --memory             Use in-memory database
    -s, --seed [value]       Seed the consortia database

  Databases:

    Specify the CouchDB database connection as a URL string:

    $ coinstac-server-core --database http://localhost:5984

    Seeding:

    Pass the '--seed' flag to use the built-in seed documents. You may also pass
    in the path to your custom consortia JSON file:

    $ coinstac-server-core --seed ./path/to/my/docs.json

License

MIT. See LICENSE for details.

Keywords

coinstac

FAQs

Package last updated on 30 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts