0.15.10 • Published 3 years ago

ouistity-moleculer-starter-kit v0.15.10

Weekly downloads
5
License
UNLICENSED
Repository
gitlab
Last release
3 years ago

Moleculer logo

codecov

Update the package

# Increase the version inside package.json file
npm init
npm publish

https://dev.to/therealdanvega/creating-your-first-npm-package-2ehf https://www.npmjs.com/package/ouistity-moleculer-starter-kit

Architecture

Modules

  • moleculer: 0.14.6
  • moleculer-axios: 0.1.2
  • moleculer-web: 0.9.1
  • rabbitmq queues topology
  • graphql client
  • swagger auto

Add a service

const debug = require('debug')('ouistity:runner')

const Runner = require('./')

const runner = new Runner()
runner.addService({
  name: 'ServiceTest',
  actions: {
    TestCommand: {
      metadata: {
        rabbitmq: true
      },
      handler (ctx) {
        return true
      }
    }
  }
})
runner.on('success', () => {
  debug('Run Forest, run!')
})
runner.run()

Add a middleware

const debug = require('debug')('ouistity:runner')

const Runner = require('./')

const runner = new Runner()
runner.addMiddleware({
  name: 'MiddleTest',
  ...
})
runner.on('success', () => {
  debug('Run Forest, run!')
})
runner.run()
0.15.10

3 years ago

0.15.9

3 years ago

0.15.6

4 years ago

0.15.7

4 years ago

0.15.8

4 years ago

0.15.4

4 years ago

0.15.5

4 years ago

0.15.3

4 years ago

0.15.2

4 years ago