mule-deer-2014/the-project — pull request #1 by sgharms (2014-08-26 22:31:42+00:00)
Title: Add sgharms components written 2014-08-25

Key steps in my development process

1) Build an API endpoint using a simple framework (Sinatra)
2. Build a tool that emulates an IOS device (as I don't know iOS programming but want to build stuff)

## API

1. Decide to [build a modular app](http://www.sinatrarb.com/intro.html#Modular%20vs.%20Classic%20Style)
1. [Get auto-update on code edit working] (http://www.sinatrarb.com/contrib/reloader.html)
1. Use `thin`: it's a web server that works well on Heroku. As I showed you in Phase 2, it's massively more performant than Webrick

1. Built a simple POST route for events that proves "hey it works!". Filling out the implementation, adding ActiveRecord, etc. can come later.
1. Build a simple GET route to provide hey `/` works
1. Start server, verify I can hit the routes in my log files (I could use my browser or `curl` here)

## IOS_MOCK

A small CLI app to pretend to be our "upvoting" and "downvoting" ios app

Build something that POSTs to my API server. So, hit a URL and send a number of "types" of params hash. Use FactoryGirl to mock that versus building hashes by hand. Bonus, these factories could be ported to a Rails app.