During the summer, people go tubing down Boulder Creek. To be fun, it has to be just right: enough water flowing, hot enough, and mostly sunny.
Objective: Build an application that lets the user know if it's a good day to go tubing. Implement it however you'd like using. Preferably Ruby on Rails for the backend/API, but beyond that whatever stack you feel is appropriate.
The goal is to demonstrate general competency, and comfort developing an open-ended application. Take about an hour. Since that's not much time, it's fine to describe unfinished parts with what you'd have liked to do.
Use this API endpoint for information on tubing conditions:
GET https://boulder-tubing-api.herokuapp.com/conditions
Returns application/json:
{
"temperature_f":"44",
"weather_condition":"Cloudy",
"flow_rate_cfs":58.0
}
To be a good day for tubing, these conditions must be met:
Temperature: > 85 F
River Flow Rate: between 40 CF/S and 300 CF/S
Weather Conditions: One of the following:
windy
cloudy
mostly cloudy
partly cloudy
clear
sunny
fair
hot
See Yahoo Documentation for a complete list of condition codes.
- The API is really slow, running free on Heroku, and doesn't cache any data. Feel free to re-implement this, or cache data faster responses: