Skip to content

Maxenceee/UNO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNO

Multiplayer UNO fully in Vanilla Javascript and running on Node.JS server.

You can use this project on localhost or on a Node.js server to use it online.

Try it here!

Usage

Clone this project and open current directory into a terminal, then install dependencies by running:

npm install

After installing the dependencies, start the project by running:

npm start

App will be available on localhost at specified port in the bin/www file (> defaultPort) or you can specify it in an environment file .env.

Multiplayer

Multiplayer WebSocket server will automaticaly start on port 8081 nothing more is required.

Multiple games can be played in the same time, players are automatically matched.

Play online

Example configuration of a Node.js Apache server

An easy way to do is to enable ProxyPass on virtual host and configure the server as follow.

To serve the Node application:

<VirtualHost *:80 *:443 >

	...

    ProxyPass / https://localhost:[app-port]/
    ProxyPassReverse / https://localhost:[app-port]/
</VirtualHost>

To serve the WebSocket:

<VirtualHost *:80 *:443 >

	...

    ProxyPass / ws:https://localhost:[socket-port]/
    ProxyPassReverse / ws:https://localhost:[socket-port]/
</VirtualHost>

Notes

For the moment game can be played with only two players and UNO button is not working.

Known issues

On certain versions of Firefox and Chrome, the front face of the cards may not be displayed.