5.0.4 • Published 4 years ago

open-rest-with-elastic v5.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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()}`);
  });
5.0.4

4 years ago

5.0.3

4 years ago

5.0.2

4 years ago

5.0.1

4 years ago

7.0.0

4 years ago

6.0.0

4 years ago

5.0.0

4 years ago