entix-io
v0.0.3
Published
<code>$ npm i joi jsonwebtoken kcors knex koa koa-body objection pluralize sqlite3</code>
Downloads
3
Readme
entix-io
$ npm i joi jsonwebtoken kcors knex koa koa-body objection pluralize sqlite3
const app = new (require('koa'))
const bodyparse = require('koa-body')
const cors = require('kcors')
const { resolve } = require('path')
const { errodHandler } = require('entix-io')
global.entix = require('entix-io')(resolve(__dirname, 'src'))
app.use(bodyparse())
app.use(cors())
app.use(errodHandler(entix.services.handler))
app.use(entix.router().routes())
app.listen(3000)