A multi-player LUDO game, made with node.js
, socket.io
and Vanilla Javascript
.
You can either build the app by cloning the repository or by pulling the Docker image.
-
By Cloning:
Clone the repo:
git clone https://github.com/CyberCitizen01/LUDO/
Install the dependencies:
npm install
Start the node server:
npm start
Head over to http://localhost:3000/, to see the Home Page.
-
By Docker:
From an docker image:
- Pull the image and run:
Head over to http://localhost:3000/, to see the Home Page.
docker run --name the-ludo-game -p 3000:3000 cybercitizen01/the-ludo-game
- The above command attaches the shell of the container to your terminal, and thus when you hit ^C the container stops automatically. To run the container in detached mode:
docker run --name the-ludo-game -d -p 3000:3000 cybercitizen01/the-ludo-game
- To monitor the output of the game:
docker logs the-ludo-game
- Now, to stop the container:
docker stop the-ludo-game
- Also, to remove the container after stopping:
(add a -f flag at the end, to forcefully remove a running container)
docker rm the-ludo-game
- Pull the image and run: