Election Match is a basic app that matches users to nearby elections based on their address. When the user submits an address form, the address is translated into OCD-IDs or Open Civic Data division identifiers, and then used to query the Democracy Works Elections API for upcoming elections in the user's area. Please use the upcoming elections link by Democracy Works to test current OCD_IDs that are in use.
Any elections returned are displayed for the user. A live proxy server is used as an intermediary between the DemWorks API and this client side app. The backend repo is here and currently hosted on Heroku.
OS X & Linux:
After cloning this repo type the following commands into your terminal to install dependencies and start your local server:
npm install
npm start
To view tests, quit your server (cmd + c) and type the following commands into your terminal:
npm test
The user is presented with an address form.
The user submits the form and their address is translated into some OCD-IDs. The Democracy Works Election API is queried for upcoming elections in their area. The user's view updates to display any elections returned by the API.
Planned enhancements include:
git checkout -b feature/thingamajig
)git commit -m 'Added a cool doodad!'
)git push origin feature/thingamajig
)Tanjie McMeans