Giter VIP home page Giter VIP logo

ticket-booking-camunda-cloud's Introduction

Ticket Booking Example

Ticket Booking Process

A ticket booking example using

  • Camunda Cloud,
  • RabbitMQ,
  • Java Spring Boot App
  • NodeJS App

Architecture Overview

How To Run

Walkthrough

Run RabbitMQ locally

docker run -p 15672:15672 -p 5672:5672 rabbitmq:3-management

Create Camunda Cloud Cluster

  • Login to https://camunda.io/
  • Create a new Zeebe cluster
  • When the new cluster appears in the console, create a new set of client credentials.
  • Copy the client credentials into
    • Java App booking-service-java/src/main/resources/application.proeprties
    • Node App fake-services-nodejs/.env

Run NodeJs Fake Services

The Zeebe related code can be developed from scratch following this get started tutorial: https://docs.cloud.camunda.io/docs/node-client

cd fake-services-nodejs
ts-node src/app.ts

Run Java Ticket Booking Service

The Zeebe related code can be developed from scratch following this get started tutorial: https://docs.cloud.camunda.io/docs/spring-java-client

mvn package exec:java -f booking-service-java\

Test

 curl -X PUT http://localhost:8080/ticket

Simulate failures by:

curl -X PUT http://localhost:8080/ticket?simulateBookingFailure=seats
curl -X PUT http://localhost:8080/ticket?simulateBookingFailure=ticket

ticket-booking-camunda-cloud's People

Contributors

berndruecker avatar

Watchers

 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.