1.0.12 • Published 6 years ago

mostly-feathers-rest v1.0.12

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

MostlyJS Feathers Handler

Build Status

This module provides an express middleware as a RESTful gateway to call microservice writing with mostly-feathers.

Usage

Installation

npm install mostly-feathers-rest

Quick Example

import express from 'express';
import bodyParser from 'body-parser';
import nats from 'nats';
import mostly from 'mostly-node';
import feathers from 'mostly-feathers-rest';

const trans = new mostly(nats.connect()
const app = express()
  .use(bodyParser.json())
  .use(bodyParser.urlencoded({ extended: true }));

trans.ready(() => {
  app.use(feathers(app, trans, '/api'));
  app.listen(process.env.PORT || 3001);
});

License

MIT

1.0.12

6 years ago

1.0.11

6 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago