Skip to content

A ticket booking example using Camunda Cloud, RabbitMQ, REST and two sample apps (Java Spring Boot and NodeJS)

License

Notifications You must be signed in to change notification settings

aquib-J/ticket-booking-camunda-cloud

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A ticket booking example using Camunda Cloud, RabbitMQ, REST and two sample apps (Java Spring Boot and NodeJS)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 80.9%
  • TypeScript 17.0%
  • Shell 2.1%