1.0.1 • Published 9 years ago

nbn v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

nbn

aka Nothing But Net

Lead Maintainer - Shaun Berryman

Dependencies

This awesome thing depends on the following:

  • Hapi
  • Seneca
  • RabbitMQ (not technically required but used as the default seneca client & listen transports)

Options

module.exports = {
    services: '/.*/i',
    servicesPath: './services',
    plugins: '/.*/i',
    pluginsPath: './plugins',
    relativeTo: __dirname
};

Examples

ToDo

Docker

ToDo

Heroku

Generate a Procfile which will automatically execute ./node_modules/.bin/nbn with the correct command line options.

> npm run heroku-procfile

  Output??

Example

web: npm run cli --web --hirefire

low: npm run cli --listen --services="/.*/i" --prefetch=$LISTEN_PREFETCH_LOW
l-find-customer: npm run cli --listen --services="find-customer" --prefetch=$LISTEN_PREFETCH_FIND_CUSTOMER
l-email-customer: npm run cli --listen --services="email-customer" --prefetch=$LISTEN_PREFETCH_EMAIL_CUSTOMER

TCP Client Example

Left this here for ideas..

> npm run cli --listen --listen-type="" --services="/.*/i" --plugins="seneca-loadbalance-srv,seneca-logger"