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).
- Nodejs 10.11.0
- Npm 6.4.1
- Java 8
- Maven 3.5
- Docker 18.06.1 (with docker-compose)
- Deploy Docker composition
docker-compose up -d
- Build Maven project
mvn clean package
- Launch Java KeyboardListener class
java -cp target/keyboard-listener-0.0.1-SNAPSHOT.jar fr.ultimaratio.lab.keyboard.listener.KeyboardListener
- 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
- Install front dependencies
npm install
- Launch webapp
npm start
- Checkout out localhost