/cloudbowl-microservice-game

Primary LanguageScalaApache License 2.0Apache-2.0

Cloud Bowl

A game where microservices battle each other in a giant real-time bowl.

Run Locally:

  1. Make sure you have docker installed and running
  2. Start Kafka
    ./sbt "runMain apps.dev.KafkaApp"
    
  3. Start the Battle
    ./sbt "runMain apps.Battle"
    
  4. Start the apps.dev Kafka event viewer
    ./sbt "runMain apps.dev.KafkaConsumerApp"
    
  5. Start the sample service
    cd samples/scala-play
    ./sbt run
    
  6. Start the apps.dev Kafka event producer
    ./sbt "runMain apps.dev.KafkaProducerApp"
    
    You can send commands like
    ARENA/viewerjoin
    ARENA/playersrefresh
    
  7. Start the Viewer web app
    ./sbt run
    
    Check out the foo arena: http://localhost:9000/foo

TODO

  • Arena Peach or Something else
  • Battle hot looping
  • Persist arenas
  • Fan-out battle