1.0.10 • Published 6 years ago

mostly-feathers v1.0.10

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

MostlyJS with Feathers

Build Status

This module provides quick steps to create MostlyJS microservices with Feathers.

Usage

Installation

npm install mostly-feathers

Quick Example

Convert your Feathers APIs into microservices is easy enough.

Your existing Feathers code

// service.js
import memory from 'feathers-memory';

export default function() {
  const app = this;

  // initialize service
  const service = new memory();
  app.use('dummies', service);
}

Wrapping it as standalone server

import nats from 'nats';
import mostly from 'mostly-node';
import feathers from 'mostly-feathers';
import service from './service';

const trans = new mostly(nats.connect());
trans.ready(() => {
  var app = feathers(trans)
    .configure(service);
});

That's all, the service will register itself with NATS and can be called remotely.

RESTful Gateway

To expose the service as RESTful api, you need only setup a simple express gateway server using mostly-feathers-rest

License

MIT

1.0.10

6 years ago

1.0.9

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago