Skip to content

tychuang2385/Voting

 
 

Repository files navigation

Voting

Pre-install for ubuntu

  1. Add Node.js PPA
  2. Install Node.js on Ubuntu
    • sudo apt-get install nodejs
  3. Test Node.js and NPM Version
    • node -v
    • npm -v
  4. Install Voting Server packages
    • cd Vote/
    • npm install

Config file

  1. Rename config_template.js to config.js
  2. Fill in Oauth information (e.g. google client id, secret)

How to start Voting Server

  1. sudo node server.js

Set join function on IotTalk

def run(*args):
    total = sum(args)
    return [ int(round(i / total, 2) * RANGE_YOU_WANT) for i in args] if total != 0 else [0] * len(args)

About

Aipolling's Input side

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.4%
  • EJS 29.8%
  • CSS 3.8%