Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

@feathersjs/express

1.2.3 • Public • Published

@feathersjs/express

Greenkeeper badge

Build Status 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 @feathersjs/express --save

Important: This plugin only works with feathers 3.0 and later

Documentation

Please refer to the @feathersjs/express API documentation for more details.

Complete Example

Here's an example of a Feathers server that uses @feathersjs/express.

const feathers = require('@feathersjs/feathers');
const express = require('@feathersjs/express');
 
const app = express(feathers());
 
app.configure(express.rest());
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.

install

npm i @feathersjs/express

Downloadsweekly downloads

14,656

version

1.2.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability