Giter VIP home page Giter VIP logo

voteapp's Introduction

VoteApp

VoteApp is an e-voting platform that allows users to create polls and vote either publicly or privately. The poll questions have the flexibility of being either single or multiple choice. Users can register and participate in public polls, get an invitation for private ones or create their own private polls and invite other voters. This project serves as a simple proof of concept for online voting as a part of my thesis. The aim was to create an android app and simultaneously discover the difficulties and problems of e-voting systems.

Prerequisites

  • Java version >= 1.8
  • scala-sbt >= 0.13.13
  • Play Framework version is 2.5.4 (only download if the project is not working)

Installation

  1. Download, install PostgreSQL from the official website and create a blank database for the server.
  2. Download and install Java and sbt. Make sure the versions match the prerequisites. Set the Java path if needed (Windows).
  3. Clone this repository in a folder.
  4. Edit /conf/application.conf, locate the db object and change the database credentials to the ones from step 1.
  5. Run sbt (it's an sbt shell now) in the top level of the project and after it has downloaded the dependencies, execute run to bring the server online. The server should be listening at localhost:9000.
  6. (Optional) To activate HTTPS you need to add -Dhttps=enabled as a parameter to the run. Check Play's website on how to configure it.

Developers

This is a Play Framework project written in Java. It tries to follow the RESTful architecture design. The built-in sbt-play-ebean plugin is taken advantage of in order to create an ORM layer between the models and the relational database using JPA mapping annotations. The project was developed to work with PostgreSQL but it shouldn't be trivial to swap with other RDBMS technologies.

Currently there is no friend-list system handled by the platform. This is handled separately from the client program e.g VoteApp_Android.

Resources

  • Users
  • Polls
  • Participations
  • Votes

The above resources are represented in JSON and follow the JSON-API specification. Check the documentation page ./public/html/documentation.html to explore all available endpoints and their requirements by opening it with a browser.

Database schema

Disclaimer

Although basic security practices are followed (input validation, bcrypt password encryption, JWT tokens), this platform is not to be used by any means for critical elections without further investigation and development.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

voteapp's People

Contributors

sstamatiadis avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

hello-welt

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.