Skip to content

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

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.9-npm.tgz

Download activity

  • Total downloads 4,087
  • Last 30 days 249
  • Last week 63
  • Today 0