@greenpress/plugins
Version:
manage plugins system
12 lines (10 loc) • 344 B
text/typescript
import {start} from '@greenpress/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)
loadRoutes().then(() => {
start('Plugins Service', process.env.PORT || 9006, process.env.IP || '127.0.0.1')
})