Skip to content

voting app that utilises mongodb and websockets for live updates (in development)

License

Notifications You must be signed in to change notification settings

Lee182/voting-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

realtime-voting-app

description

a realtime voting app that uses the tools vuejs, socket.io, mongodb, expressjs, login-with-twitter.

install

# if NODE_ENV isn't set to 'PRODUCTION' devDependencies will be installed
$ npm install

server/keys.js file

it is import to create a file called keys which resembles this format.

module.exports = {
  mongourl: 'mongodb://[user]:[pwd]@yourdomain.com:[port]/[db_name]',
  twitter: {
    consumerKey: 'xxxxxxxxxxxxxxxxxxxxxxxxx',
    consumerSecret:'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
  }
}

twitter oauth keys can be obtainend from https://apps.twitter.com/app/new

running dev mode,

app/** file changes are watched then compiled to dist

$ npm run start-dev

running normally

$ npm run start

Licence & Author

Author: Jonathan T L Lee, jono-lee@hotmail.co.uk

Licence: MIT

About

voting app that utilises mongodb and websockets for live updates (in development)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published