@amplication/plugin-broker-nats

2.0.5 • Public • Published

@amplication/plugin-broker-nats

NPM Downloads

This plugin provide basic integration with NATS servers

Purpose

This plugin saves the developers the mess of boilerplate a new microservice with integration to NATS server.

Instructions

To make sure that the @amplicaiton/broker-nats package will work currectly you as a developer needs to make sure you'r service is booting up with micro-service support in the bootstrap function in the main.ts (This is called an hybrid app).

The two most important function to call are the app.connectMicroservice with a NATS transport and the app.startAllMicroservices function.

Another important thing is to make sure that the NatsModule is called from the app.module.ts

Scripts

build

Running npm run build will bundle your plugin with Webpack for production.

dev

Running npm run dev will watch your plugin's source code and automatically bundle it with every change.

Readme

Keywords

none

Package Sidebar

Install

npm i @amplication/plugin-broker-nats

Weekly Downloads

31,268

Version

2.0.5

License

Apache-2.0

Unpacked Size

1.68 MB

Total Files

24

Last publish

Collaborators

  • amitbarletz
  • amplication-bot
  • barshimi
  • levivannoort
  • morhag
  • mulygottlieb
  • overbit
  • yuvalhazaz