systemic-express 1.2.9
Install from the command line:
Learn more about npm packages
$ npm install @infinitaslearning/systemic-express@1.2.9
Install via package.json:
"@infinitaslearning/systemic-express": "1.2.9"
About this version
A systemic express component.
Comes with types and updated dependecies compared to the original guidesmiths/systemic-express
const System = require('systemic')
const server = require('systemic-express').server
const app = require('systemic-express').app
const defaultMiddleware = require('systemic-express').defaultMiddleware
const routes = require('./lib/routes')
new System()
.configure({
server: {
port: 3000
},
app: {
etag: true
}
})
.add('app', app()).dependsOn('config')
.add('routes', routes()).dependsOn('app')
.add('middleware.default', defaultMiddleware()).dependsOn('routes', 'app')
.add('server', server()).dependsOn('config', 'app', 'middleware.default')
.start((err, components) => {
// Do stuff with components
})