https://github.com/marks/verify-vote
Mock up to verify a voter's ballot choice via SMS
https://github.com/marks/verify-vote
Last synced: 9 months ago
JSON representation
Mock up to verify a voter's ballot choice via SMS
- Host: GitHub
- URL: https://github.com/marks/verify-vote
- Owner: marks
- Created: 2013-03-14T23:01:53.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-11-21T23:11:09.000Z (over 12 years ago)
- Last Synced: 2025-04-07T18:16:15.191Z (about 1 year ago)
- Language: Ruby
- Homepage: verify-vote.socialhealthinsights.com
- Size: 166 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
verify-vote
===========
Mock up to verify a voter's ballot choice via SMS
by [Mark Silverberg](http://twitter.com/skram) of [Social Health Insights](http://socialhealthinsights.com/)
for Danny Thiemann of the Indiana University Maurer School of Law
Data Source
-----------
Publicly accessible Google spreadsheet at [https://docs.google.com/a/gwmail.gwu.edu/spreadsheet/ccc?key=0AvEbeLXW2uw0dHFmbUU1cHZIWVlzZk1PT2hDNnZWX0E#gid=0](https://docs.google.com/a/gwmail.gwu.edu/spreadsheet/ccc?key=0AvEbeLXW2uw0dHFmbUU1cHZIWVlzZk1PT2hDNnZWX0E#gid=0)
Demonstration
-------------
* You can interact with this app by calling/texting one of the endpoints below.
Service
Number/Name
Voice/Text
Call/SMS
(260) 207-4235
Both
Skype
+990009369990065278
Voice only
SIP
sip:9990065278@sip.tropo.com
Voice only
iNum
+883510001392933
Voice only
Jabber
verifyvote@tropo.im
Text only
* You can also see the data source (details above) by visting one of the following web endpoints in your browser
* [/ballots](http://verify-vote.socialhealthinsights.com/ballots) show all ballots in JSON format
* [/ballot/321](http://verify-vote.socialhealthinsights.com/ballot/321) show the details for a specific ballot in JSON format
Steps to recreate
-----------------
1. You will need to have [the Heroku Toolbelt](https://toolbelt.herokuapp.com/) installed first.
2. Drop into your command line and run the following commands:
* `git clone http://github.com/marks/verify-vote.git --depth 1`
* `cd verify-vote`
3. Edit the `config.yml.exmaple` to use your own API username and password and rename the file to `config.yml`
4. Back at the command line, issue:
* `heroku create`
* `git push heroku master`
5. Log in or sign up for [Tropo](http://www.tropo.com/) and create a new WebAPI application.
For the App URL, enter in your Heroku app's URL and append `/index.json` to the end of it.
6. That's it! Call in, use, and tinker with your app!
Dev Notes
---------
* Create tunnel for local development (local sinatra port = 4567), more information available at https://www.tropo.com/docs/webapi/using_tunnlr_reverse_ssh.htm
* `ssh -nNt -g -R :12748:0.0.0.0:4567 tunnlr3492@ssh1.tunnlr.com`
* Set tropo endpoint to `http://web1.tunnlr.com:12748/index.json`