Giter VIP home page Giter VIP logo

ece312-clicker's Introduction

ece312_clicker

This is a simple voting server developed for the third laboratory in the course ECE312 at Univerity of Alberta.

Features:

  • listens on a TCP port for multiple connections
  • the user can select a question and open a new poll
  • broadcasts the status to the clients
  • displays the results of voting

This package containts two additional servers besides the voting server:

  • Echo Server: A TCP server that accepts connections and echos every line it receives
  • Toggle Server: A TCP server that periodically sends "active" and "inactive" to connected clients

Usage

All examples assume that the application is installed in a virtual environmet.

To run the server GUI application:

cd ece312-clicker
source venv/bin/activate
python -m ece312_clicker.gui

To run the Echo Server:

cd ece312-clicker
source venv/bin/activate
python -m ece312_clicker.echo_server

To run the Toggle Server:

cd ece312-clicker
source venv/bin/activate
python -m ece312_clicker.toggle_server

TCP ports

The default TCP ports are as follows:

Server Port
Clicker server with GUI 2000
Echo server 2001
Toggle server 2002

Installation

Example of installation in a separate virtual environment:

git clone https://github.com/tommz9/ece312-clicker.git
cd ece312-clicker
python3 -m venv venv
source venv/bin/activate
pip install -e .

Requirements

Requirements are handelend by setup.py.

  • click: for the command line parameters

Licence

MIT

Authors

ece312_clicker was written by Tomas Barton <[email protected]>_.

ece312-clicker's People

Contributors

tommz9 avatar

Stargazers

 avatar

Watchers

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