Coder Social home page Coder Social logo

one-two-three-quarkus's Introduction

One-Two-Three Quarkus

This is a fun version of the ‘freeze or die’ game, where each phone represented a player on screen. By shaking your phone, you can advance your player towards the finish line… provided you don’t ‘die’ along the way!

It is dedicated to explaining how Quarkus simplifies the process of creating such an interactive and scalable game. The extensions involved are:

Slides

Use quarkus-reveal to run the slide-deck (located in deck.md:

quarkus-reveal

Dev Mode

One tab:

cd dashboard;
quarkus dev

Another tab:

cd runnner;
quarkus dev

Open dashboard on http://localhost:8079/ Open multiple runners on http://localhost:8080/

Deploy to OpenShift

Create a Kafka Cluster, then (after logging with oc and selecting the project):

Deploy Dashboard (only one pod max):

cd dashboard
quarkus build -Dquarkus.kubernetes.deploy=true --clean

Get dashboard route:

oc get route one-two-three-quarkus-dashboard -o jsonpath='https://{.spec.host}/api/game'

Deploy Runners (scale to N):

cd ../runners
quarkus build -Dquarkus.kubernetes.deploy=true --clean -Dfrontend.api.game=DASHBOARD_API_GAME_URL

one-two-three-quarkus's People

Contributors

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