Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Forum Contest: Build an API Consumer App With Sinatra

After you've watched the video, please read the details below carefully. I'm looking forward to your entries!

How to Enter: Create an app using Sinatra that consumes a public API and displays data from it. The API can be any one of your choice and any gems for API consumption are acceptable. Entries will be judged based on code and design.

Here are some possible API options, though any are acceptable:

Here are some gems that can be used to talk to an API:

Due Date: All entries must be submitted by September 14th at 11:45pm EST. Here's a timezone chart so you can see what time that is for your locale.

Prize: One winner will receive a free month of Treehouse Pro on us! :) We'll announce the winner on September 15th and reveal the next contest.

Holt Hunter
Holt Hunter
4,629 Points

Why does it say: We'll announce the winner on September 8th and reveal the next contest, when it should say September 15? Or was it just an accident?

I don't really understand this contest, Can you please explain a bit more Jason?

I don't get it either. Do you want us to use OAuth (for example) to fetch data from a Twitter or Facebook account and publish it? Or do we need to create an API that can be accessed from a third party?

Create an App that consume an Api Rest, Jason give us some examples, and yes you can do that with oAuth.

10 Answers

Looks good! Well done Charlie!

Nicholas Olsen
seal-mask
.a{fill-rule:evenodd;}techdegree
Nicholas Olsen
Front End Web Development Techdegree Student 19,342 Points

Here is my submission:

Treeshop

A web app for helping TeamTreehouse members find each other for collaborations.

NOTE: The app makes unauthenticated requests to the Github API so it only gets 60 requests per hour. If there are too many calls within an hour, it breaks. Also, I can't afford to run it on more than one dyno so it takes a while to load if it hasn't been called within 30 minutes.

The idea was a website like CodeTriage or LookingForPullRequests but geared specifically toward connecting Treehouse members.

It is really fragile and the code is pretty rough but I am damn proud of it. I had a great time doing this and I am certainly going to continue working on it (if that is ok with the Treehouse staff—I'm not sure what kind of brand problems it may cause. LMK)

James demby
James demby
10,296 Points

Just came across this thread.

I would love if there was a course on building a simple app with Sinatra. All of the ruby courses that get anywhere past being command line based are all in Rails.

The actual app could be really simple, but having some classes and methods tied into a UI with a controller or something like that would be awesome.

Cheers

Who was last week's Ping Pong Design winner??

Create an App that consume an Api Rest, Jason give us some examples, and yes you can do that with oAuth.

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey all! Sorry for the confusion. All we're looking for in this contest is an app that consumes some kind of public facing API and displays data however you'd like. For example, you could fetch some pictures from the Flickr API and display them on a page, perhaps with a tag search.

Ooohhh thanks Jason!! Can't wait to get started! Also, when you say 'app' can it be a web app, or must it be a mobile application?

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Max Ungless It should be a web app written in Sinatra.

Jason, is Sinatra a Ruby framework? Because the contest is filed under Ruby

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hi everyone!

What a tough week! Both entries were really great this week but Nicholas Olsen won by a hair. Keep up the great work -- these make great portfolio additions.

The next forum contest is about creating a rock paper scissors game in Python. Great job everyone!