@qelos/plugins
Version:
manage plugins system
16 lines (13 loc) • 380 B
text/typescript
import {start, config} from '@qelos/api-kit';
import {connect} from './server/models';
import {mongoUri} from './config';
import {loadRoutes} from './server/routes';
//
// // connect to the database and load models
connect(mongoUri)
config({
bodyParser: null,
})
loadRoutes().then(() => {
start('Plugins Service', process.env.PORT || 9006, process.env.IP || '127.0.0.1')
})