Skip to content

vote on stuff in node. See results in real time across browsers.

Notifications You must be signed in to change notification settings

seanarooni/node-votesystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-votesystem

Node-votesystem is a simple example of app built on top of node-boilerplate. Socket.io was used to display real-time auto-updating results (total vote) on each client view.

Node-votesystem can be viewed at vote.tadcoenvironmental.com

based on node-boilerplate found at https://github.com/robrighter/node-boilerplate get node from http://nodejs.org/

key files:

server.js - main server file. tracks vote counts and pushes data to clients.

static/js/script.js js controlling index.jade up vote is 1, downvote is -1 sends data back to server via socket.io

views/index.jade compiles to index.html id is controlled with script.js

todo: -function to load objects to vote on.
-Change to postgresql db -implement security

About

vote on stuff in node. See results in real time across browsers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors