Upcoming Elections
Search for upcoming elections in your area by address.
Along with go standard library packages, Upcoming Elections uses the gorilla web toolkit for routing, csrf tokens, and converting form data to go structs. Uses the Google civic info api and the Democracy Works turbovote api.
Building this package requires the go toolchain. Follow these instructions to install go on your system.
go get github.com/mlauter/upcoming-elections.git
cd upcoming-elections
make
This will fetch the necessary dependencies and compile the elections binary.
You will need an api key for google's Civic Information API
export CIVIC_DATA_API_KEY="<your_api_key>"
ENV=development ./elections -host 127.0.0.1 -port 8080
And navigate to localhost:8080
in your browser.
To run the tests, simply run
make test