turingschool-examples / house-salad

Backend Mod 3 Repo used in consuming APIs lesson

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

House Salad Base

This repo is used as a base for the Consuming API lesson taught in Backend Module 3. To complete the lesson you will need to sign-up for an API key from the ProPublica Congress API.

Versions

Rails 5.2.4.3

Ruby 2.5.3

Setup

git clone https://github.com/turingschool-examples/house-salad-base house-salad

cd house-salad

rails db:{create,migrate}

Exercise

Write a test and complete this user story

NOTE: Please use the existing form in the application.

As a user
When I visit "/"
And I select "Colorado" from the dropdown
And I click on "Locate Members of the House"
Then my path should be "/search" with "state=CO" in the parameters
And I should see a message "7 Results"
And I should see a list of the 7 members of the house for Colorado
And I should see a name, role, party, and district for each member

About

Backend Mod 3 Repo used in consuming APIs lesson


Languages

Language:Ruby 80.7%Language:HTML 14.0%Language:CSS 2.8%Language:JavaScript 2.6%