0.2.0 • Published 9 years ago

steeplejack-express v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Steeplejack Express

Gitter NPM Version NPM Downloads Node.js Version Build Status Dependencies Dev Depedencies

Express strategy for Steeplejack

Usage

In your main Steeplejack run method, you will need to configure your Express strategy like this...

import {Express} from "steeplejack-express";
import {Server} from "steeplejack/lib/server";

app.run($config => {
    const server = new Server($config.server, new Express({
        ssl: {}
    }));
    
    return server;
});

You can also import expressLib from the package, which is the result of require("express");.

This is the minimal config. The Express constructor accepts an optional object that defines the ssl. This is to be used if you want to configure your server to publish over HTTPS. This object is the options that can be set on the HTTPS options.

License

MIT License

0.2.0

9 years ago

0.1.0

9 years ago