Jr.DevJobs Challenge: Legislator Lookup
In this challenge you will create a webpage using the Sunlight Foundation's Congress API to lookup United States legislators by zip code. For each legislator you will display the details defined in the user story.
You are free to do this in any language or framework, however the sample is written in JavaScript.
To begin, Fork this repository to your GitHub account by clicking the Fork icon in the upper-right section of this page.
If you're new to Forking, we suggest reading the GitHub documentation before moving forward.
Finally, in order to use the Congress API you must register for a free API Key from the Sunlight Foundation.
As a user, I want to view the details of the legislators in my area by providing my zip code.
- First and last name
- Chamber of congress and party affiliation
- Link to their government bio page (ex. http://woodall.house.gov/)
- Phone number and email address
- Profile picture (Hint: This Congressional Images Repo hosts images listed by each legislator's
bioguide_id
) - Links to sponsored bills (including the bill ID and title if available) (Hint: Pass a legislator's
bioguide_id
to the/bills?apikey=API_KEY&sponsor_id__in=
end-point) - Icons/Links to social media networks
The screenshot below is an example of how to display the details of legislators in the 30024 zip code.