a realtime voting app that uses the tools vuejs, socket.io, mongodb, expressjs, login-with-twitter.
# if NODE_ENV isn't set to 'PRODUCTION' devDependencies will be installed
$ npm install
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
app/** file changes are watched then compiled to dist
$ npm run start-dev
$ npm run start
Author: Jonathan T L Lee, [email protected]
Licence: MIT