Package Exports
- @feathersjs/express
- @feathersjs/express/rest
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@feathersjs/express) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@feathersjs/express
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 --saveImportant: This plugin only works with
feathers3.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.
