Code Monkey home page Code Monkey logo

nodeludo's Introduction

NodeLudo

Online multiplayer Ludo made with Node.js.

Supports multiple games at once, spectating games and playing multiple games. Ingame chat and idle kick.

Live verson can be found here: https://hybel.ddns.net/ludo

Requirements

Requires npm and Node.js(version 10.9.0. or newer) to be installed on the system.

Installing and running

git clone https://github.com/trygve55/NodeLudo.git
npm install
npm start

Configuration

Changing port

Change the line port: 8080, in config.js to whatever port you want to run the server on.

Reverse proxy support with apache2

In config.js change:

baseUrl: '/'

to:

baseUrl: '/ludo/'

Lines required in apache viritual host:

    ProxyPass /ludo http://localhost:8080/ludo
    ProxyPassReverse /ludo http://localhost:8080/ludo

    RewriteEngine on
    RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
    RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
    RewriteRule .* ws://localhost:8080%{REQUEST_URI} [P]

nodeludo's People

Contributors

trygve55 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.