rawb-microservice-base

0.9.33 • Public • Published

Simplified wrapper for microservices in RAWB

How to use

let ms = require('../');

const start = async () => {

    let options = {
        name: 'foo 1.0.0',
        version: '1.0.0',
        appPath: '',
        port: 9000,
    };

    let server = await ms.start(options);

    server.get('/tjena', (req, res, next) => {
        res.send({hej: 1});
        next();
    });

};

start();

Run tests

npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i rawb-microservice-base

Weekly Downloads

2

Version

0.9.33

License

ISC

Unpacked Size

276 kB

Total Files

13

Last publish

Collaborators

  • inna.aleshina
  • simon.sporrong
  • mikaela.ruden
  • jaarni
  • daniumdev
  • thjo
  • richardsweeney
  • alexander-nilsson
  • camilo.tapia
  • 24hr-machine-user
  • insidenpm
  • bextex