Skip to content

Ordina-JTech/CodeAndComedy-PongGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code and Comedy Pong Game

Prerequisites

For game-client, -server and -pong

For game-client and -pong

For game-host

Installing

A step by step series of examples that tell you how to get a development env running

For game-client, -server and -pong

npm install

For game-host

  1. Import project into IntelliJ IDEA.
  2. Select the folder where you put the git repo (/game-host).
  3. Let IntelliJ Gradle build the project. It will do this automatically

Deployment

For game-host, -server and -pong

The game-host, -server and -pong can be deployed with Docker. The docker build command must be run from inside their respective project directories. The projects must be run in this order:

  • Run game-host:
docker build -t codeandcomedy-game-host .
docker run --rm -p 8080:8080 codeandcomedy-game-host
  • Run game-server:
docker build -t codeandcomedy-game-server .
docker run --rm -p 5000:5000 codeandcomedy-game-server
  • Run game-pong:
docker build -t codeandcomedy-game-pong .
docker run --rm -p 3000:80 codeandcomedy-game-pong

For game-client

Upload production files to codeandcomedy.nl/games.

Join Game with Phone

Go to codeandcomedy.nl/games in phone browser and enter a username and gamepin.