2. What’s in here?
Just to show a piece of the work we’ve done here:
What’s the SweatDrops app?
How it was conceived?
Two functionalities samples:
People’s nearby
Loading fitness/sports events
3. SweatDrops
What’s that?
A social network targeted to sportists, athletes and fitness
lovers. For example you can (not limited):
- Find people with you same interests (i.e. someone who may
want to jog with you) and follow them.
- Find events near you (i.e. a Triathlon contest in Miami) and
participate (check in) on those events
How
With a mobile platform composed by Iphone clients and a
Ruby on Rails Backend
4. Mini-Architecuture
Deployed on Heroku
Ruby on Rails Backend
Restful Web Services
MVC RoR app
Sweat App
Objective C
Mysql
Deployed on ClearDB
5. App’s function example:
People’s nearby
Want to find somebody around me to run 10 miles in San Francisco?
From the device’s GPS: Lat/Long
Call a secure restful RoR service:
Json result with
people located
near me
6. A small code sample fragment
Technical
The Ruby controller for the people’s nearby web service
Get coordinates from the phone’s GPS
Passed by parameters for this case
Use the geo_scope gem to search by lat/long
Refine query (backwards
compatibility)
Render json string
7. Other App’s functions
My profile
My name and my network
Sport events I’ve
attended/participated
There’s a RoR restful webservice
for all of these functions.
8. The heart of the system: The
events
The system is conceived around the events.
Event examples:
Marin Count Half Marathon, 10K and 5K
Zumba class by Mihaela Stanciu at San Francisco
Let’s job for fun in Lake Merced 3 miles
Why?
In this world, you build your network over sports/fitness
events.
9. How Sweat catches events?
From the users:
From third parties via their APIs
Active.com Zumba
MindbodyOnline.com
10. Catching events from third
parties
Zumba, active.com and MindBody offer APIs to grab
events from their database
Using Rails rake:tasks:
Invoke the webservice
Insert the events in the database
Keep track
Live code for a similar problem:
https://github.com/hernamvel/sfmuniwrapper
Using a webservice to catch data (SF muni routes)