Express plugin for Symfio
CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
lib
test
.gitignore
.travis.yml
Gruntfile.coffee
LICENSE
README.md
package.json

README.md

symfio-contrib-express

Express plugin for Symfio.

Build Status Coverage Status Dependency Status NPM version

Usage

symfio = require "symfio"

container = symfio "example", __dirname

container.set "port", 80

container.inject require "symfio-contrib-express"

container.inject (get) ->
  get "/", ->
    (req, res) ->
      res.send "Hello World!"

Configuration

port

Port for listening. Default value is 3000.

middlewares

Application middlewares.

Services

express

Original express module.

app

Express application.

server

http.Server instance for express application.

startExpressServer

Function used to start server after all plugins is loaded.

get, post, put, delete, patch, etc.

Working like original app methods, but last argument must be controller factory.