Git Product home page Git Product logo

orders-kogito's Introduction

Setup

Install infinispan

  • add user "developer" and "password1"
  • infinispan-server-12.1.4.Final % bin/cli.sh user create developer -p password1 -g admin
  • server must be running before running kogito applications
  • infinispan-server-12.1.4.Final % bin/server.sh Install Kafka
  • kafka_2.13-2.8.0 % bin/zookeeper-server-start.sh config/zookeeper.properties
  • Edit server.properties to enable PLAIN 9092
  • kafka_2.13-2.8.0 % bin/kafka-server-start.sh config/server.properties
  • Create inbound and outbound topics (optional - kogito seems to do this automatically when allowed to)
  • kafka_2.13-2.8.0 % bin/kafka-topics.sh --bootstrap-server localhost:9092 --topic orders_kogito_inbound --create
  • kafka_2.13-2.8.0 % bin/kafka-topics.sh --bootstrap-server localhost:9092 --topic orders_kogito_outbound --create

Build and run locally

mvn clean compile quarkus:dev

Build and run on OpenShift (without Kafka)

1.) Install kogito operator into a particular namespace 2.) Deploy the kogito build and runtime from the deploy folder

  • change git url if necessary in build file

Test

curl -X POST http://localhost:8080/incomingOrder -H 'content-type: application/json' -H 'accept: application/json' -d @src/test/data/incomingOrder_post1.json | jq .

curl -X POST http://orders-kogito-rhi.apps.ocp4.home.glroland.com/incomingOrder -H 'content-type: application/json' -H 'accept: application/json' -d @src/test/data/incomingOrder_post1.json | jq .

curl -X POST http://orders-kogito-knative-serving.apps-crc.testing/incomingOrder -H 'content-type: application/json' -H 'accept: application/json' -d @src/test/data/incomingOrder_post1.json | jq .

Supporting Services

Indexer run locally

java -Dquarkus.infinispan-client.auth-username=developer -Dquarkus.infinispan-client.auth-password=password1 -jar data-index-service-infinispan-1.7.0.Final-runner.jar

Management Console run locally

java -Dquarkus.http.port=8280 -jar management-console-1.7.0.Final-runner.jar http://localhost:8280/ProcessInstances/

orders-kogito's People

Contributors

glroland avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.