3.0.0 • Published 8 years ago
coinstac-server-core v3.0.0
COINSTAC Server Core
COINSTAC core server functionality. Documentation.
Install
Install in your project to use programmatically:
npm install coinstac-server-core --saveOr, install globally for easy CLI use:
npm install coinstac-server-coreUsage
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.jsonLicense
MIT. See LICENSE for details.
3.0.0
8 years ago
2.6.1
8 years ago
2.6.0
9 years ago
2.5.0
9 years ago
2.4.0
9 years ago
2.3.1
9 years ago
2.3.0
9 years ago
2.2.2
9 years ago
2.2.0
9 years ago
2.1.1
9 years ago
2.1.0
9 years ago
2.0.9
9 years ago
2.0.8
9 years ago
2.0.7
9 years ago
2.0.6
9 years ago
2.0.5
10 years ago
2.0.4
10 years ago
2.0.3
10 years ago
2.0.2
10 years ago
2.0.1
10 years ago
0.0.6
10 years ago
0.0.4
10 years ago
0.0.2
10 years ago