open-rest-with-mysql
v0.2.0
Published
MySQL & Sequlize as store, Base on open-rest
Downloads
21
Maintainers
Readme
Open-rest-with-mysql
MySQL & Sequlize as store, Base on open-rest
Node version
Open-rest version
Installation
npm install open-rest-with-mysql --save
Usage
const openRest = require('open-rest');
const getter = require('open-rest-helper-getter');
const assert = require('open-rest-helper-assert');
const rest = require('open-rest-helper-rest');
const params = require('open-rest-helper-params');
openRest
.plugin(U.openRestWithMysql)
.plugin(getter, assert, rest, params)
.start(`${__dirname}/app`, (error) => {
if (error) {
console.error(error);
process.exit();
}
console.info(`Service started at: ${new Date()}`);
});