Use http://edutechional-resty.herokuapp.com/posts.json in order to complete the project
- Create a new file and require
rubygems
andhttparty
, after installation. - Create a class that includes HTTParty and the base uri.
- Create a method that uses the
get
request to grab posts via json. - Create an new instance of the class, put it in a variable and print it out.
- Run file in terminal to make sure the API was called correctly. Both posts should be called.
- Fork the GitHub repo
- Clone on your local machine
- Change into root application directory
- Run:
rspec
to run tests - Implement the functionality necessary to get all of the tests passing
- After all tests are passing,
add
andcommit
your code and push it to your remote fork - Paste the link to your fork in the end of week guide page on DevCamp