gsohoni / sms_voting_app Goto Github PK
View Code? Open in Web Editor NEWRails app for displaying voting statistics for campaigns and candidates
Rails app for displaying voting statistics for campaigns and candidates
Voting App README: Environment requirements: rails: 3.0.9 mysql2: 0.2.11 Setup: rake db:create - creates mig_voting_development database rake db:migrate - creates the tables as per migrations in db/migrate rake import:data - import vote data into the database from votes.txt log file Running the rails app as 'rails s' should run it on port 3000. 1) localhost:3000 - lists all the campaigns imported 2) Clicking on Show details shows the campaign details: a) campaign name b) candidates with their score (valid votes) c) invalid vote count (depending on validity) Description: For keeping the application and data simple and clear, three main data models were created. 1) vote 2) campaign 3) candidate Vote model is the most important entity and serves two purposes: 1) it holds the voting data 2) it acts as a join model between campaign and candidate So using the join model vote, we can find the candidates for a given campaign and thus can calculate valid and invalid votes. Every vote belongs to a candidate and a campaign. Votes with valid validity (validity = 'during') are considered for campaign score. Invalid votes are calculated per campaign depending upon their invalid validity. Script for loading the log file data into database is the rake file under lib/tasks/ named import.rake On command line, running rake import:data imports the data into the database. Application documentation can be found in doc/app/index.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.