zb-facebam

command module
v0.0.0-...-e6885a8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

README

zb-facebam

Note: This example uses Zeebe 0.5 and cannot be used with the latest Zeebe version without modifications!

This project implements example application which consist of 3 services: board, thumbnail and watermarking.

The process which is implemented is the following:

process

Note: The services work on a hard coded path /tmp/watermarking which will probably only work in *UNIX like environments.

Requirements

Setup

First create topic which will be used by our process.

zbctl create topic --name default-topic --partitions 1

then create workflow on the broker.

zbctl create workflow process.bpmn

To start microservices use make command. Open 3 terminals and in each of them start 1 service with the following commands:

make board

After starting this service, point your browser to http://localhost:5000 and click on the upload photo button. Select some PNG photo and confirm the upload.

make watermark

This service will watermark uploaded image. You should see some output similar to the following.

Saved watermarked image to /tmp/watermarking/...

Then start the thumbnail service.

make thumbnail

This service will create thumbnail of the uploaded image. You should see some output similar to the following.

Waiting for events ....
Saved thumbnail to /tmp/watermarking/...
Task completed successfully.

After you uploaded an image and the task services processes it you can visit http://localhost:5000/images/ and refresh the page using CTRL+F5 to list the process images.

Code of Conduct

This project adheres to the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].

License

zb-facebam is distributed under the terms of the Apache License (Version 2.0).

See LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL