Coder Social home page Coder Social logo

easella / election-polling Goto Github PK

View Code? Open in Web Editor NEW

This project forked from m7kvqbe1/election-polling

0.0 0.0 0.0 614 KB

Polling application built with Silex & Backbone.js

License: MIT License

JavaScript 24.27% PHP 36.64% HTML 7.08% SCSS 19.73% Handlebars 12.28%

election-polling's Introduction

General Election Polling Application

Build Status Scrutinizer Quality Score

Welcome to the General Election Polling Application documentation. This is a single page application served by a database driven RESTful API.

Summary of Technologies Used

The application has been built using the following key technologies:

  • PHP 5.6
  • Silex (see composer.json for list of additional packages)
  • Backbone.js
  • Handlebars.js
  • Underscore.js
  • jQuery
  • mySQL
  • Grunt (for SPA build)
  • SASS
  • Bootstrap

Pre-requisites

The application uses Apache and a .htaccess file (included) to URL rewrite all requests (except those to /public) to the application entry point (index.php).

Installation

Please find included in the archive of this repository a SQL dump of the mySQL database.

  1. Please install the relevant project dependencies via Composer (composer install - composer.json included).

  2. Build SPA JavaScript bundles and CSS by installing and running Grunt (npm install - package.json included).

  3. Ensure that the following file exists and is writable: ./log/error.log (this is not included in the repositoy due to the .gitignore).

  4. Please configure the ./src/config.ini for your environment (I reccomend setting DEBUG to false for production).

General Notes

Although some unit testing has been done and the API is complete I've skipped out functional testing of the API which would usually be performed using the Symfony WebTestCase class to test all the endpoints: http://symfony.com/doc/current/book/testing.html#functional-tests

The following feature has not yet been fully implemented due to time constraints: Results Filter

Things to note about the voting feature:

  • Feedback from API (e.g. with problem committing to database / if a user voted).
  • Dynamically populates potential candidates based on constituency selected.
  • Client side validation

Copyright and Licence

This application has been written by Tom Humphris and is released under the MIT License.

election-polling's People

Contributors

m7kvqbe1 avatar easella avatar

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.