Skip to content

AlexCbn/midterm_consensus

 
 

Repository files navigation

Consensus

Making decisions is hard. Why not step back and let someone else do it? Consensus lets you create polls on any subject and send links to whoever you want. Friends anonymously rank their choices, and you get to see the aggregate results. Easy as pie!

File Setup

  1. This app uses Nodemailer to send emails via Gmail. You will need to create a secrets.js file with the following setup:

const emailPassword = "<YOUR EMAIL PASSWORD>"; const userEmail = "<THE GMAIL ADDRESS YOU WILL SEND FROM>"; module.exports = { emailPassword, userEmail }

Getting Started

  1. Create an .env with the following information:

DB_HOST= DB_USER= DB_PASS= DB_NAME= DB_SSL=false DB_PORT=5432

  1. Install dependencies: npm i
  2. Fix to binaries for sass: npm rebuild node-sass
  3. Run migrations: npm run knex migrate:latest
  4. Run the seed: npm run knex seed:run
  5. Run the server: npm run local
  6. Visit http://localhost:8080/

Using Consensus

Home page:

Home page

Register and log in to use the app. Your polls will be displayed on the "My Polls" page.

My Polls page

Each poll is a link to an admin page where you can get details such as the number of responses and the curret results.

Poll admin page

Create a poll by filling in the fields on the Create page. You will receive an email once it has been created. You'll also get an email notifying you every time someone takes your poll. Friends drag and drop their choices to rank them. Their answers are anonymous.

Taking a poll

Dependencies

  • Node 5.10.x or above
  • NPM 3.8.x or above
  • bcrypt 2.0.0
  • body-parser 1.15.2 or above
  • cookie-session 1.3.2 or above
  • dotenv 2.0.0 or above
  • ejs 2.4.1 or above
  • express 4.13.4 or above
  • knex 0.11.7 or above
  • knex-logger 0.1.0 or above
  • mailgun-js 0.19.0 or above
  • morgan1.7.0 or above
  • node-sass-middleware 0.9.8 or above
  • nodemailer 4.6.7 or above
  • pg 6.0.2 or above

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.6%
  • HTML 22.7%
  • CSS 20.7%