1.0.0-pre.1 • Published 7 years ago

feathers-express v1.0.0-pre.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

feathers-express

Greenkeeper badge

Build Status Code Climate Test Coverage Dependency Status Download Status

Feathers Express framework bindings and REST provider

This plugin turns a Feathers v3+ application into a drop-in replacement for any Express application.

Installation

npm install feathers-express --save

Important: This plugin only works with feathers 3.0 and later

Documentation

Please refer to the feathers-express API documentation for more details.

Complete Example

Here's an example of a Feathers server that uses feathers-express.

const feathers = require('feathers');
const expressify = require('feathers-express');

const app = expressify(feathers());

app.use('/myservice', {
  get(id) {
    return Promise.resolve({ id });
  }
});

app.use((req, res) => res.json({ message: 'Hello world' }));

app.listen(3030);

console.log('Feathers app started on 127.0.0.1:3030');

License

Copyright (c) 2017

Licensed under the MIT license.