Giter VIP home page Giter VIP logo

lantimerapp's Introduction

LanTimerApp: A way for timing and cycling through different devices for your table games in your local network

ezgif-2-057a36eed0.gif

This template project provides a way for timing and cycling through phones on your table games on a LAN. Adapt it on for your own projects.

Requirements

If you are using yarn, install the required packages with the lockfile

yarn

If you are using npm:

npm install

Usage

  1. Start by modifying the public/index, adding the server's local ip.
hostname -I | awk '{print $1}'

then change the following line

window.onload=()=>{
    // socket handler
    server_ip_lan="10.1.211.85" // <- paste here your server's ip
    socket=io.connect(server_ip_lan+":8080",{reconnection: false})
  1. Once you're done, start the server
node main.js

you should get this prompt depending on your selected port:

Screenshot-from-2022-05-24-16-23-59.png

  1. To add the playing devices (phones, computers or anything that has access to an internet browser and your local network), access the server's ip through your browser's the search bar, for example http://10.1.211.85:8080/.

  2. Once all the devices have entered to the network, set their ids in your preferred order (starting from 0) followed by the enter keystroke (so the server assigns each socket with its respective id).

  3. Now, you're ready to start the cycle! make sure to press NEXT when you're done with your turn, so other players don't get bored waiting for the clock to finish.

License

MIT

lantimerapp's People

Contributors

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