guru sorocaba - junho/14 - ruby e mobile apps

Post on 01-Nov-2014

341 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

Ruby and Mobile appsKO!!!

Hello!Hanneli (a.k.a. @hannelita)!

Codeminer 42!

Coffee and Pokémon <3!

What we will seeSoftware development - evolution!

Welcome to mobile world!!

Do we need backend?!

Ruby for mobile apps backend!

Helios environment!

Funny gifs (or not)

Programming

1990 -> 2000

Web

SKILL SET

PHP

Apache

MySQL

EASY!

JDBCHibernate 2

XMLJPA

Hibernate 3.1Annotations

JPA 2EclipseLink

Hibernate 4

ServletJSP

StrutsStruts 2VRaptor

JSF1JSF 2Richfaces

PrimefacesSeam

TomcatJetty

JBossGlassfish

WeblogicWebsphere

EJBWebservices

JMSJAX-RS

Eclipse

IntelliJ IDEANetbeans

Enterprise, huh?

A little MOAR

Oracle

NoSQLRubyRailsSinatra

Postgres

HTML

CSS

JS

jQuery

TDD vimRSpecMongo

CassandraNode.jsMeteor.js Backbone.js

Neo4jRedis

HerokuGit

Torquebox

Sou F...

Dig Din

2000 -> Nowadays

Mobile!

Your mobile

Bank account

Email

Personal Trainer

Clock

Photo gallery

Communication

The Apple

The Apple

Hey, sweet, do you have WhatsApp?

iPhone

iPhoneDoes Apple give

money?

DO SOME APPS THEN <3

iOS Development

Objective C

iOS

Xcode

SQLite

Foundation

C

C++

UIKit CoreGraphics

CoreServices

CoreLocation

ARC

iOS Development

iOS Development

[[[[ ]]]]

Life is too short to Objective C

Keep doing Ruby

BUT

The app is now popular

Wow

Client Server

OH NO!

Objective C backend!

SALVATION

Let’s RUBY!

What do you need for backend, sir?

Data Sync

011001

InApp Purchases

Push Notification

Let’s RUBY!

No need to do from zero!

Helios!

Keep lazy for backend!

Helios DefaultsHeroku app

gem install helios

helios new tdc

helios server

http://localhost:5000/admin

Checklist

Data Model Sync!

InApp Purchases!

Push Notifications

Rails - application.rb

config.middleware.use Helios::Application do! service :data, model: 'path/to/DataModel.xcdatamodel'! service :push_notification ! service :in_app_purchase!end!

Data model SyncREST model - from

CoreData

GET /talks

POST /talks

GET /talks/2

PUT /talks/2

DELETE /talks/2

Push Notifications

Orbiter framework Helios

!

!Rack PushNotification

Apple APNS

1. Register for PSN2. Receive

Token

3. App sends token

4. Notifies APNS when something happens

5. APNS Sends the

push

Open Source!

helios rack-push-notification

orbiter houston

AFNetworking

Do I need Backend?

What does your app do?!

Number of users?!

What are your goals?

Do I need Backend?

What does your app do?!

Number of users?!

What are your goals?

Other gems

apn_on_rails!

urbanairship!

push_core

Thank you! Questions?

@hannelitahannelita@gmail.com

ourdailycodes.com hannelita.com

top related