tea-rest-plugin-mysql

1.1.1 • Public • Published

tea-rest-with-mysql

MySQL & Sequlize as store, Base on tea-rest

Node version

 >= 8 

tea-rest version

 >= 8

Installation

npm install tea-rest-plugin-mysql --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()}`);
 });
 

/tea-rest-plugin-mysql/

    Package Sidebar

    Install

    npm i tea-rest-plugin-mysql

    Weekly Downloads

    0

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    15.2 kB

    Total Files

    16

    Last publish

    Collaborators

    • jason-bai