Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bimedia-fr/architect-elasticsearch
Expose Elasticsearch.JS to architect framework
https://github.com/bimedia-fr/architect-elasticsearch
Last synced: 8 days ago
JSON representation
Expose Elasticsearch.JS to architect framework
- Host: GitHub
- URL: https://github.com/bimedia-fr/architect-elasticsearch
- Owner: bimedia-fr
- License: apache-2.0
- Created: 2015-06-19T07:21:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-09T14:47:55.000Z (almost 2 years ago)
- Last Synced: 2024-12-07T20:12:06.581Z (28 days ago)
- Language: JavaScript
- Size: 47.9 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
architect-elasticsearch
=================Expose elasticsearch as architect plugin.
### Installation
```sh
npm install --save architect-elasticsearch
```### Usage
Boot [Architect](https://github.com/c9/architect) :
```js
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:
```js
module.exports = [{
packagePath: "architect-elasticsearch",
settings: {
default: {
hosts: ['localhost:9200']
}
}
}, './services'];
```