Pong
This is a multiplayer implementation of the classic pong game. The client is written in Javascript and the server in Java. WebSocket provides the communication protocol for message exchange.
A live version of the game is located here.
Deployment
Manual Setup
The preferred process for a manual setup requires the JDK and Maven.
- Enter the
server/
directory of this project root. - Run
mvn install
. - Start the server with
java -jar target/pong-server-1.0-SNAPSHOT-jar-with-dependencies.jar
. - Direct a web browser toward
client/index.html
.
Docker Compose
Docker Compose offers a simpler setup process than above.
- Run
docker-compose -f docker-compose.local.yaml up --build
- Direct a web browser toward "localhost".