guidesmiths/generator-systemic

View on GitHub
generators/app/templates/lib/components/express/index.js

Summary

Maintainability
A
55 mins
Test Coverage
const System = require('systemic');
const { defaultMiddleware, app, server } = require('systemic-express');

module.exports = new System({ name: 'express' })
  .add('app', app()).dependsOn('config', 'logger')
  .add('middleware.default', defaultMiddleware())
  .dependsOn('logger', 'app', 'routes')
  .add('server', server())
  .dependsOn('config', 'app', 'middleware.default');