5.0.4 • Published 4 years ago
open-rest-with-elastic v5.0.4
tea-rest-with-elastic
elastic as store, Base on tea-rest
Node version
tea-rest version
Install multiple versions
npm install tea-rest-with-elastic@5.x.x --save
npm install tea-rest-with-elastic@6.x.x --save
npm install tea-rest-with-elastic@7.x.x --save
Usage
const teaRest = require('tea-rest');
const getter = require('tea-rest-helper-getter');
const assert = require('tea-rest-helper-assert');
const rest = require('tea-rest-helper-rest');
const params = require('tea-rest-helper-params');
teaRest
.plugin(U.teaRestPluginMysql)
.plugin(getter, assert, rest, params)
.start(`${__dirname}/app`, error => {
if (error) {
console.error(error);
process.exit();
}
console.info(`Service started at: ${new Date()}`);
});