Code Monkey home page Code Monkey logo

poll-pal's Introduction

This is a very basic voting website with no user accounts made in a hackathon.

Installation

npm install

Start server on localhost:3000

npm start

The goal was to create a quick voting website that could be used in comittee meetings and similar scenarios. We chose to not implement user accounts to reduce time needed to create apoll, and to remove certain types of security problems entirely. The poll itself is given a password which is required to edit it. Voting is completely unauthenticated.

Some similar (actually usable) tools include Strawpoll and Google Forms. RCV is neigh on impossible to use on either, despite being very useful for deciding between a few different options.

Index page

Creating a poll

Voting on a poll

Viewing results of a poll

We planned to have multiple types of voting systems and multi question polls but did not have time. Approval voting is implemented (incorrectly named as agreement on the app), with unfinished support for RCV.

Technical

On the backend this is a Node.js application using Express.js and MongoDB performing CRUD operations. This was significantly helped by this template however the coding styles between that template and later code here clash in places (" vs ' for comments and ; or no ;). Because we opted to not implement user accounts there is 1 model (model/votes.js), a view for that 1 model (views/votes) (and the index page), and 1 controller for that model (routes/votes.js). Consequentely this makes an extremely minimal template for a Node.js server that might make a useful reference to someone.

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.