1.1.0 • Published 6 years ago

seneca-web-adapter-connect v1.1.0

Weekly downloads
10
License
MIT
Repository
github
Last release
6 years ago

Seneca Web Adapter Connect

Build Status Coverage Status

This is an adapter for seneca-web using connect.

Installation

A peer dependencies has been specified for seneca-web And of course connect needs to be present for this to work at all.

npm install --save connect
npm install --save seneca-web
npm install --save seneca-web-adapter-connect

Usage

Please refer to the seneca-web documentation on how to load routes.

You can require this module as the adapter when using the SenecaWeb plugin

const Seneca = require('seneca')
const SenecaWeb = require('seneca-web')
const Connect = require('connect')
const seneca = Seneca()
seneca.use(SenecaWeb, {
  context: Connect(),
  adapter: require('seneca-web-adapter-connect')
})
seneca.ready(() => {
  const app = seneca.export('web/context')()
  app.listen(3000)
})
1.1.0

6 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago