Git Product home page Git Product logo

vote's Introduction

vote

CLI app for voting information. Makes use of Google's Civic Information API.

Requirements

  • Google Civic Information API enabled
  • Add the following local .env file
export API_KEY=<YOUR GOOGLE API KEY>

Build

go build

Usage

❯ ./vote
Vote is a CLI app for upcoming elections

Usage:
  vote [command]

Available Commands:
  elections   List upcoming elections
  help        Help about any command
  reps        List representatives

Flags:
  -h, --help   help for vote

Use "vote [command] --help" for more information about a command.

Example

Reps command

❯ ./vote reps
What's your address?: 111 Eighth Avenue

New York Mayor
• Bill de Blasio
• Democratic Party

New York City Comptroller
• Scott M. Stringer
• Democratic Party
• [email protected]

New York Public Advocate
• Jumaane D. Williams
• Democratic Party
• [email protected]

New York City Council Member
• Corey Johnson
• Democratic Party
• [email protected]

Elections command

❯ ./vote elections
? Pick an upcoming election:
  VIP Test Election |  June 6, 2025
  ❯️  New York Municipal Election |  June 22, 2021
  House District 78 Primary Runoff Election |  June 22, 2021
  Pawtucket City Council District 5 Special Election |  July 6, 2021
↓ Los Angeles County - San Marino Unified School District Special Parcel Tax Election |  June 29, 2021
❯ ./vote elections
❯️️  New York Municipal Election |  June 22, 2021
What's your address?: 111 Eigth Avenue

YOUR EARLY VOTE SITE:
The Mall at Hudson Yards
20 Hudson Yards
New York, NY, 10001

POLLING HOURS:
Thu, Jun 17: 10 am - 8 pm
Fri, Jun 18: 7 am - 4 pm
Sat, Jun 19: 8 am - 5 pm
Sun, Jun 20: 8 am - 4 pm

YOUR VOTE DAY POLLING SITE:
IS 70
333 West 17 Street
New York, NY, 10011

POLLING HOURS:
Tue, Jun 22: 6 am - 9 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.