Skip to content

A Node/Express application using WebSockets to update poll data in real-time.

Notifications You must be signed in to change notification settings

kswhyte/real-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time | Pollr

Customize your poll data with unique questions in mind and send a link to users to cast their vote on the Live Version


screen shot 2017-02-03 at 2 59 49 am

Approach

In this project, the chief aim was to explore client-side security with Auth0 and build a real-time application with communications to WebSockets. When the server gets new information, it pushes it out to all of the connected clients, who each authorize with a github account. A user will come to the web app to create a poll/question for whatever audience of choice using 4 options/answers to go with it. Then a user’s Github image will act as a marker to indicate when they have selected a poll option. All poll option selections update in real-time, and the poll 'admin' is able to specify an ending date and time.

On the Server

This is a Node/Express application that starts off keeping all of the data in memory using local variables. WebSockets are used to broadcast poll results to the client.

On the Client

jQuery is used for all updating and DOM manipulations. WebSockets are used to broadcast a user's vote to the server. Auth0 is used to authorize the client with a Github account.

screen shot 2017-02-03 at 2 59 31 am


Original Assignment


DEVELOPMENT:

  1. Pull this repository down with git clone.
  2. npm install
  3. node server.js
  4. visit http://localhost:3000

About

A Node/Express application using WebSockets to update poll data in real-time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published