Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 906 Bytes

README.md

File metadata and controls

51 lines (34 loc) · 906 Bytes

Kafka "Snake" [WIP]

Just a square (let's pretend it's a tiny snake) controlled by a Java CLI app using Z,Q,S,D keystrokes (Yeah I did it the opposite way because why not).

Prerequired

  • Nodejs 10.11.0
  • Npm 6.4.1
  • Java 8
  • Maven 3.5
  • Docker 18.06.1 (with docker-compose)

Installation

  1. Deploy Docker composition
docker-compose up -d
  1. Build Maven project
mvn clean package
  1. Launch Java KeyboardListener class
java -cp target/keyboard-listener-0.0.1-SNAPSHOT.jar fr.ultimaratio.lab.keyboard.listener.KeyboardListener
  1. Check that you can receive commands using the Debugging consumer
java -cp target/keyboard-listener-0.0.1-SNAPSHOT.jar fr.ultimaratio.lab.keyboard.listener.KeyboardInputConsumer
  1. Install front dependencies
npm install
  1. Launch webapp
npm start
  1. Checkout out localhost