architect-elasticsearch

2.2.0 • Public • Published

architect-elasticsearch

Expose elasticsearch as architect plugin.

Installation

npm install --save architect-elasticsearch

Usage

Boot Architect :

var path = require('path');
var architect = require("architect");

var config = architect.loadConfig(path.join(__dirname, "config.js"));

architect.createApp(config, function (err, app) {
    if (err) {
        throw err;
    }
    console.log("app ready");
});

Configure Architect with config.js to access the local Elasticsearch service:

module.exports = [{
    packagePath: "architect-elasticsearch",
    settings: {
        default: {
            hosts: ['localhost:9200']
        }
    }
}, './services'];

/architect-elasticsearch/

    Package Sidebar

    Install

    npm i architect-elasticsearch

    Weekly Downloads

    27

    Version

    2.2.0

    License

    Apache License V2.0

    Unpacked Size

    15.4 kB

    Total Files

    9

    Last publish

    Collaborators

    • echestier
    • vtricoire
    • jcreigno