Skip to content

mlauter/upcoming-elections

Repository files navigation

Upcoming Elections

Overview

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.

Running

Building this package requires the go toolchain. Follow these instructions to install go on your system.

Build

go get github.com/mlauter/upcoming-elections.git
cd upcoming-elections
make

This will fetch the necessary dependencies and compile the elections binary.

Run

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.

Testing

To run the tests, simply run

make test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published