These free mini-courses will give you a strong foundation in web development. Track your progress and access advanced courses on HTML/CSS, Ruby and JavaScript for free inside our student portal.
Scroll down...
When building your Political Tracking app, you will be completely reliant upon a third-party API for the data. We recommend using the free Sunlight Congress API (their documents mention the need for an API key, but this is no longer required).
Your first task will be to investigate and experiment w/ the API, figuring out both what data you want and then how best to get it. Once you know what you need, you will write a JavaScript Module that gives you straightforward methods and objects for dealing with the API and the data it returns.
But first things first...
Start by understanding the API. Make a list of the data you need and then read the Sunlight Congress API documentation and take note of which endpoints and query parameters seem useful. Ideally, you should make as few API hits and retrieve as little data as possible. The more thought you put into this, the easier it will be to write the functions wrapping and processing the data.
Once you know what you want and how to retrieve it, it's time to encode that knowledge into your program. Here's is where you'll create a Node.js module full of helpful functions. You should have at least the following behavior:
Once you're done, continue to the next exercise, where you will use your new functions to turn the data into a web application.