Skip to content

ruttyj/PlayDealLegacy

Repository files navigation

PlayDealLegacy

PlayDealLegacy is an online multiplayer card game where players attempt to collect a set number of cards to win. This project was built using React, RxJs, Node.js, and SocketIO.

Available cards

About

Built with React, RxJs, NodeJs & SocketIO This was a passion project created during the COVID-19 quarantine. This was my first React, NodeJs, SocketIO project and first time making a multiplayer game, so the game was not architected very cleanly. I have decided to rewrite this game again given what I have learned. Please see https://github.com/ruttyj/PlayDeal/

Getting Started

Prerequisites

Before you begin, ensure you have the following installed on your system:

Command to add nvm to bash profile

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
  • Reboot terminal
  • Run the following commands nvm install 14 nvm use 14

Get running in development

Install packages

npm install

Run in development mode: Note the project will run on port 3001 by default

npm run dev

Please note that the game will run on http://localhost:3001/

Setup Digital Ocean Server:

Here is the video which was followed: https://www.youtube.com/watch?v=fJ4x00SR7vo

Gameplay screen shot