Skip to content

systemic-express 1.2.14

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

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.14.tgz

Download activity

  • Total downloads 845
  • Last 30 days 0
  • Last week 0
  • Today 0