Coder Social home page Coder Social logo

thomasschilder / devops_ticket_booking Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 10.83 MB

This repository shows the migration towards a cloud-enabled version of a ticket bookings system. This project is developed by group 8 during the Devops and Could-based Software course of 2024

License: MIT License

Java 72.00% JavaScript 14.86% Dockerfile 9.38% Python 3.77%

devops_ticket_booking's Introduction

Ticket Booking Example

Ticket Booking Process

A ticket booking example using

  • Camunda Platform 8,
  • RabbitMQ,
  • Java Spring Boot App
  • NodeJS App

Architecture Overview

How To Run

<a href="http://www.youtube.com/watch?feature=player_embedded&v=m3MYuRKLZa8" target="_blank"><img src="http://img.youtube.com/vi/m3MYuRKLZa8/0.jpg" alt="Walkthrough" width="240" height="180" border="10" /></a>

Run RabbitMQ locally

docker run -p 15672:15672 -p 5672:5672 rabbitmq:3-management
  • [http://localhost:15672/#/queues/]
  • User: guest
  • Password: guest

Create Camunda Platform 8 SaaS Cluster

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

Run NodeJs Fake Services

If you want to understand the code, please have a look into this get started tutorial: [https://github.com/camunda/camunda-platform-get-started/tree/main/nodejs]

cd fake-services-nodejs
npm update
npm run build
node src/app.js

Run Java Ticket Booking Service

If you want to understand the code, please have a look into this documentation: [https://github.com/camunda/camunda-platform-get-started/tree/main/spring]

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

Test

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

Simulate failures by:

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

devops_ticket_booking's People

Contributors

jojojochem avatar jturpijn avatar mrwa7 avatar thomasschilder avatar

Stargazers

 avatar

Watchers

 avatar  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.