Code Monkey home page Code Monkey logo

uno-card-game's Introduction

UNO ONLINE

Two player online game of UNO

๐Ÿง How to Play?

  1. Once you're on the homepage of the game, you can either host a new game or join a friend's game.
  2. To host a new game, click on CREATE GAME. A game code will be generated which you can share with your friend.
  3. To join a friend's game, enter the game code given by them, and click on JOIN GAME.
  4. That's it! Enjoy the game and remember, no toxicity!

๐Ÿ Getting Started (to run game locally)

Follow the steps below, after cloning the repository:

๐Ÿ– Requirements

For Installing:

  • Node

For Running:

  • Change socket.IO endpoint on client side. To do this, go to client/src/components/Game.js and change line #26 from const ENDPOINT = 'https://uno-online-multiplayer.herokuapp.com/' to const ENDPOINT = 'http://localhost:5000'

โณ Installation

  • At the root of the project directory, use npm to install the server-side dependencies
npm install

This command installs all the server-side dependencies needed for the game to run locally.

  • Use npm to run server
npm start

This command gets the server running on localhost port 5000.

  • In a separate terminal, navigate into the client folder and use npm to install the client-side dependencies
cd client
npm install

This command installs all the client-side dependencies needed for the game to run locally.

  • Finally, use npm to run client
npm start

This command gets the client running on localhost port 3000.

Head over to http://localhost:3000/ and enjoy the game! ๐ŸŽ‰

uno-card-game's People

Contributors

perwiradhani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.