Skip to content

Gamify-IT/git-card-game

Repository files navigation

git-card-game

a game to practice git commands by playing cards with git commands against an npc.

Development

Getting started

Clone the repository

git clone https://github.com/Gamify-IT/git-card-game.git

Install the dependencies

npm install

Run with Docker-compose

Start all dependencies with our docker-compose files. Check the manual for docker-compose.

Compile and Hot-Reload for Development

npm run serve

Build

Build the Docker-Container

docker build -t git-card-game-dev .

And run it at port 8000 with

docker run -d -p 8000:80 --name git-card-game-dev git-card-game-dev

To monitor, stop and remove the container you can use the following commands:

docker ps -a -f name=git-card-game-dev
docker stop git-card-game-dev
docker rm git-card-game-dev

User manual

Run the docker container with the following command at port 8000:

docker run -d -p 8000:80 --name git-card-game ghcr.io/gamify-it/git-card-game:latest

Now you can access it at http://localhost:8000.
To access it externally replace localhost with your IP.

To monitor the container you can use the following command:

docker ps -a -f name=git-card-game

To stop the container you can use the following command:

docker stop git-card-game

To remove the container you can use the following command:

docker rm git-card-game

Screenshot

git-card-game screenshot