際際滷

際際滷Share a Scribd company logo
SweatDrops
A small work sample
    Hernan Velasquez, Msc, MBA
Whats in here?
Just to show a piece of the work weve done here:

 Whats the SweatDrops app?
 How it was conceived?
 Two functionalities samples:
   Peoples nearby
   Loading fitness/sports events
SweatDrops
 Whats 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
Mini-Architecuture
                                     Deployed on Heroku

                                     Ruby on Rails Backend
              Restful Web Services

                                        MVC RoR app


Sweat App
Objective C




                                             Mysql
                                      Deployed on ClearDB
Apps function example:
           Peoples nearby
Want to find somebody around me to run 10 miles in San Francisco?



                                 From the devices GPS: Lat/Long



                                  Call a secure restful RoR service:




                      Json result with
                      people located
                      near me
A small code sample fragment
                  Technical
The Ruby controller for the peoples nearby web service

                                        Get coordinates from the phones GPS
                                        Passed by parameters for this case




                             Use the geo_scope gem to search by lat/long




                                                Refine query (backwards
                                                           compatibility)

                          Render json string
Other Apps functions
                My profile

My name and my network




Sport events Ive
attended/participated




Theres a RoR restful webservice
for all of these functions.
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
   Lets job for fun in Lake Merced 3 miles
 Why?
   In this world, you build your network over sports/fitness
    events.
How Sweat catches events?
 From the users:




 From third parties via their APIs



     Active.com                   Zumba



          MindbodyOnline.com
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)

More Related Content

Similar to Ruby on rails work sample (20)

Cse rover-technology-report
Cse rover-technology-reportCse rover-technology-report
Cse rover-technology-report
nagxenapp
Robot Operating Systems (Ros) Overview & (1)
Robot Operating Systems (Ros) Overview & (1)Robot Operating Systems (Ros) Overview & (1)
Robot Operating Systems (Ros) Overview & (1)
Piyush Chand
Robot operating systems (ros) overview & (1)
Robot operating systems (ros) overview & (1)Robot operating systems (ros) overview & (1)
Robot operating systems (ros) overview & (1)
Piyush Chand
Skeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile PerformanceSkeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile Performance
Sam Ramji
Skeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile PerformanceSkeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile Performance
Apigee | Google Cloud
RDF Stream Processing: Let's React
RDF Stream Processing: Let's ReactRDF Stream Processing: Let's React
RDF Stream Processing: Let's React
Jean-Paul Calbimonte
Software Development Engineers Ireland
Software Development Engineers IrelandSoftware Development Engineers Ireland
Software Development Engineers Ireland
Sean O'Sullivan
Saurabh_CV
Saurabh_CVSaurabh_CV
Saurabh_CV
Saurabh Garg
Rover report
Rover reportRover report
Rover report
kritikaagarwal03
Mapping mobile robotics
Mapping mobile roboticsMapping mobile robotics
Mapping mobile robotics
Devasena Inupakutika
HTML Online Course HTML Course Online online html courses html online training
HTML Online Course  HTML Course Online online html courses html online trainingHTML Online Course  HTML Course Online online html courses html online training
HTML Online Course HTML Course Online online html courses html online training
Evanta Technologies
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Jackson F. de A. Mafra
Building Your Robot using AWS Robomaker
Building Your Robot using AWS RobomakerBuilding Your Robot using AWS Robomaker
Building Your Robot using AWS Robomaker
Alex Barbosa Coqueiro
A scalable server architecture for mobile presence services in social network...
A scalable server architecture for mobile presence services in social network...A scalable server architecture for mobile presence services in social network...
A scalable server architecture for mobile presence services in social network...
IEEEFINALYEARPROJECTS
DOTNET 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for m...
DOTNET 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for m...DOTNET 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for m...
DOTNET 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for m...
IEEEGLOBALSOFTTECHNOLOGIES
JAVA 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for mob...
JAVA 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for mob...JAVA 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for mob...
JAVA 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for mob...
IEEEGLOBALSOFTTECHNOLOGIES
Technology stack behind Airbnb
Technology stack behind Airbnb Technology stack behind Airbnb
Technology stack behind Airbnb
Rohan Khude
Connect js nodejs_api_shubhra
Connect js nodejs_api_shubhraConnect js nodejs_api_shubhra
Connect js nodejs_api_shubhra
Shubhra Kar
Switch to Backend 2023
Switch to Backend 2023Switch to Backend 2023
Switch to Backend 2023
Google Developer Students Club NIT Silchar
JavaScript: The Machine Language of the Ambient Computing Era
JavaScript: The Machine Language of the Ambient Computing EraJavaScript: The Machine Language of the Ambient Computing Era
JavaScript: The Machine Language of the Ambient Computing Era
Allen Wirfs-Brock
Cse rover-technology-report
Cse rover-technology-reportCse rover-technology-report
Cse rover-technology-report
nagxenapp
Robot Operating Systems (Ros) Overview & (1)
Robot Operating Systems (Ros) Overview & (1)Robot Operating Systems (Ros) Overview & (1)
Robot Operating Systems (Ros) Overview & (1)
Piyush Chand
Robot operating systems (ros) overview & (1)
Robot operating systems (ros) overview & (1)Robot operating systems (ros) overview & (1)
Robot operating systems (ros) overview & (1)
Piyush Chand
Skeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile PerformanceSkeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile Performance
Sam Ramji
Skeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile PerformanceSkeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile Performance
Apigee | Google Cloud
RDF Stream Processing: Let's React
RDF Stream Processing: Let's ReactRDF Stream Processing: Let's React
RDF Stream Processing: Let's React
Jean-Paul Calbimonte
Software Development Engineers Ireland
Software Development Engineers IrelandSoftware Development Engineers Ireland
Software Development Engineers Ireland
Sean O'Sullivan
HTML Online Course HTML Course Online online html courses html online training
HTML Online Course  HTML Course Online online html courses html online trainingHTML Online Course  HTML Course Online online html courses html online training
HTML Online Course HTML Course Online online html courses html online training
Evanta Technologies
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Jackson F. de A. Mafra
Building Your Robot using AWS Robomaker
Building Your Robot using AWS RobomakerBuilding Your Robot using AWS Robomaker
Building Your Robot using AWS Robomaker
Alex Barbosa Coqueiro
A scalable server architecture for mobile presence services in social network...
A scalable server architecture for mobile presence services in social network...A scalable server architecture for mobile presence services in social network...
A scalable server architecture for mobile presence services in social network...
IEEEFINALYEARPROJECTS
DOTNET 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for m...
DOTNET 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for m...DOTNET 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for m...
DOTNET 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for m...
IEEEGLOBALSOFTTECHNOLOGIES
JAVA 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for mob...
JAVA 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for mob...JAVA 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for mob...
JAVA 2013 IEEE MOBILECOMPUTING PROJECT A scalable server architecture for mob...
IEEEGLOBALSOFTTECHNOLOGIES
Technology stack behind Airbnb
Technology stack behind Airbnb Technology stack behind Airbnb
Technology stack behind Airbnb
Rohan Khude
Connect js nodejs_api_shubhra
Connect js nodejs_api_shubhraConnect js nodejs_api_shubhra
Connect js nodejs_api_shubhra
Shubhra Kar
JavaScript: The Machine Language of the Ambient Computing Era
JavaScript: The Machine Language of the Ambient Computing EraJavaScript: The Machine Language of the Ambient Computing Era
JavaScript: The Machine Language of the Ambient Computing Era
Allen Wirfs-Brock

Ruby on rails work sample

  • 1. SweatDrops A small work sample Hernan Velasquez, Msc, MBA
  • 2. Whats in here? Just to show a piece of the work weve done here: Whats the SweatDrops app? How it was conceived? Two functionalities samples: Peoples nearby Loading fitness/sports events
  • 3. SweatDrops Whats 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. Apps function example: Peoples nearby Want to find somebody around me to run 10 miles in San Francisco? From the devices 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 peoples nearby web service Get coordinates from the phones 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 Apps functions My profile My name and my network Sport events Ive attended/participated Theres 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 Lets 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)