Skip to content

MostlyJS/mostly-feathers-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MostlyJS Feathers Handler

Build Status

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

Documentation

Please see the documentation site.

Usage

Installation

npm install mostly-feathers-rest

Quick Example

const express = require('express');
const bodyParser = require('body-parser');
const nats = require('nats');
const mostly = require('mostly-node');
const feathers = require('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

About

Expose your Feathers microservice as a RESTful API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •