/zeebe-nestjs-playground

Exploring zeebe under nestjs

Primary LanguageTypeScript

Zeebe Broker Local Installation

https://docs.zeebe.io/introduction/install.html#using-docker-without-docker-compose

For the first time to install Zeebe broker":

docker run --name zeebe -p 26500-26502:26500-26502 camunda/zeebe:latest

Every time To start Zeebe broker:

docker run --rm -p 26500-26502:26500-26502 camunda/zeebe:latest

or run file RunZeebeBroker.cmd.

Original code for this example: jwulf/zeebe-nestjs-mre.

Nest Logo

NestJS with Zeebe

MRE: Minimal Reproducible Example, or "Meal Ready to Eat".

This is a fully working minimal example of the NestJS Zeebe Connector. Props to Dan Shapir for writing it!

Description

Nest is a TypeScript-powered MVC framework for developing Node.js backend applications.

Zeebe is a workflow engine for microservices orchestration.

You can run a Zeebe server locally using the Zeebe Docker profiles, or by downloading a release.

Installation

$ npm install

Running the app

By default, the application connects to a broker running on localhost.

To connect to a remote broker, set the ZEEBE_ADDRESS environment variable (and ZEEBE_CLIENT_ID and ZEEBE_CLIENT_SECRET if you are using the Zeebe service on Camunda Cloud).

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Stay in touch