symfio-contrib-express
v2.0.9
Published
Express plugin for Symfio.
Downloads
1
Readme
symfio-contrib-express
Launch express application after all plugins is loaded.
Usage
symfio = require "symfio"
container = symfio "example", __dirname
container.set "port", 80
loader = container.get "loader"
loader.use require "symfio-contrib-express"
loader.use (container, callback) ->
app = container.get "app"
app.get "/", (req, res) ->
res.send "Hello World!"
loader.load()
Provides
- app — Express application.
- server —
http.Server
instance for express application. - express — Original express module.
Can be configured
- port - Port for listening. Default value received from
process.env.PORT
. Ifprocess.env.PORT
is undefined then default value is3000
.