Code Monkey home page Code Monkey logo

websocket_buzzer's Introduction

Configuration préliminaire

1. Avec poetry

Si vous possédez le package poetry, placez-vous dans n'importe quel répertoire et tapez la commande suivante :

poetry update

2. Avec pip

Si vous préférez utiliser pip, placez-vous dans le répertoire racine et tapez la commande suivante :

pip install -r requirements.txt

Comment lancer l'application web ?

Placez-vous dans l'environnement avec la commande :

poetry shell

1. Lancer le websocket

Placez-vous dans le répertoire /websocket_buzzer/websocket et lancez le websocket avec la commande :

python app.py

Le terminal d'où sera lancée la commande sera bloquée tant que le websocket est actif.

2. Lancer le serveur web

Placez-vous dans le répertoire/ /websocket_buzzer/webserver et lancez le web server avec la commande :

flask run --host=0.0.0.0

Il devrait être écrit dans le terminal le port ainsi que l'ip du serveur web.

Note: pour que des joueurs puissent se connecter et jouer entre eux, il faut qu'ils se situent sur le même réseau que le serveur.

websocket_buzzer's People

Contributors

flibuste971 avatar jo-blade avatar chaman-veteran 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.