Git Product home page Git Product logo

voting_app's Introduction

Voting Application

Project Overview

This application is a full stack JavaScript voting app that let the users create their account and create their own polls. The application uses PassportJS to authenticate the users when they sign up an account and perform login session.

The logic of the application is described below:

As an authenticated user

  • The user can keep the user's polls and come back later to access them.
  • The user can share the user's polls with the user's friends
  • The user can see the aggregate results of the user's polls.
  • The user can delete polls that the user does not want anymore.
  • The user can create a poll with any number of possible items.
  • The user can vote on everyone's polls.
  • The user can see the results of polls in chart form.

As an unauthenticated user

  • The user can vote on everyone's polls.
  • The user can see the results of polls in chart form.

How I built this application?

The application is divided into 3 parts:

  1. Backend:
    • bcrypt : hash user's password when signing up and compare hashed password
    • body-parser: parse the input fields from forms
    • connect-flash : raise error messages when errors occur
    • cookie-parser : parse cookie
    • ejs : view engine
    • express : control routes
    • express-session : session
    • helmet : secure express app by setting various HTTP header
    • mongoose : database (User && Poll)
    • morgan: HTTP request logger middleware
    • passport: Authentication
    • passport-local Authentication for Local Strategy
  2. Frontend:
    • Bootstrap
  3. Data Visualization
    • Google Chart

voting_app's People

Contributors

triminhvi avatar

Watchers

James Cloos avatar  avatar

Forkers

tri-vi

voting_app's Issues

Issue 1

Hey when I select an option in your app,it renders the results directly without me voting,
It could generate bias data

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.