Skip to content

systemic-express 1.2.17

Install from the command line:
Learn more about npm packages
$ npm install @infinitaslearning/systemic-express@1.2.17
Install via package.json:
"@infinitaslearning/systemic-express": "1.2.17"

About this version

systemic-express

A systemic express component.

Comes with types and updated dependecies compared to the original guidesmiths/systemic-express

Usage

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
    })

Details


Assets

  • systemic-express-1.2.17.tgz

Download activity

  • Total downloads 979
  • Last 30 days 203
  • Last week 31
  • Today 17