open-austin / voteatx-svc

Voting place finder web service for Travis County, TX

Home Page:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VoteATX Service

VoteATX is a voting place finder application for Travis County elections.

It is provided in two projects:

This program has been tested with Ruby vesions 1.9.3 and 2.0. It requires Sqlite3 database with Spatialite extensions.

Important: For more information on setting up Spatialite on your system, see:

Once the package is downloaded (and Spatialite has been installed), run:

$ bundle install

For development, you can run the application from the command line:

$ bin/voteatx-svc 
Starting VoteATX::Service ...
CONFIGURE: environment = development
CONFIGURE: root = /home/chip/Workspace/voteatx
CONFIGURE: public_folder = /home/chip/Workspace/voteatx/public
CONFIGURE: database = /home/chip/Workspace/voteatx/voteatx.db
[2013-10-19 16:24:20] INFO  WEBrick 1.3.1
[2013-10-19 16:24:20] INFO  ruby 1.9.3 (2012-04-20) [x86_64-linux]
== Sinatra/1.4.3 has taken the stage on 4567 for development with backup from WEBrick
[2013-10-19 16:24:20] INFO  WEBrick::HTTPServer#start: pid=4838 port=4567

If you get an error such as:

SQLite3::SQLException: cannot open shared object file: No such file or directory (Sequel::DatabaseError)

that means your Spatialite library could not be located. You will need to specify the Spatialite library location when you start up the service. Use a command such as:

$ SPATIALITE=/usr/lib64/ bin/voteatx-svc

Then, browse localhost:4567 to see the running application.

The application has been deployed using Phusion Passenger (mod_rails) under Apache. The “” file is used in production.


  • describes the web services API

  • README-data.rdoc provides information on setting up the database.

  • Additional documentation can be produced by running: rake rdoc


Please report any problems or feedback through the issue tracker for this project:

This program was written by Chip Rosenthal <>.


Voting place finder web service for Travis County, TX



Language:Ruby 97.6%Language:Shell 2.4%