Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Build a Rails API-backed mobile app with RubyMotion (and RedPotion)

Build a Rails API-backed mobile app with RubyMotion (and RedPotion)

Getting started with mobile app development is now easier than ever, thanks to recent advancements in the RubyMotion community. In this session, you will learn about RedPotion, a framework known as the "Rails of iOS development", learn how to build a "mobile-friendly" API, and how to consume that API from a mobile app.

andrewhavens

May 06, 2016
Tweet

More Decks by andrewhavens

Other Decks in Programming

Transcript

  1. MOBILE APP LEARN HOW TO BUILD A WITH RAILS API-BACKED

  2. ANDREW HAVENS WHO AM I? Lead Software Engineer at JustFor

    ‣ 7 years building APIs ‣ 2 years building mobile apps @misbehavens andrewhavens email@andrewhavens.com
  3. Now available on the App Store!

  4. bit.ly/build-a-mobile-app

  5. bit.ly/build-a-mobile-app ▸ Install Xcode ▸ Make sure you have iOS

    9.3 SDK installed: ▸ xcodebuild -showsdks ▸ Clone the demo repository ▸ Install the RubyGem and CocoaPod dependencies
  6. BUILDING AN API WITH RAILS

  7. BUILDING AN API WITH RAILS ▸ Rendering JSON ▸ Versioning

    ▸ Authentication
  8. BUILDING AN API WITH RAILS ▸ Rendering JSON — active_model_serializers

    gem ▸ Versioning — namespace our routes ▸ Authentication — Add token auth to Devise
  9. CODE REVIEW

  10. WHY USE RUBYMOTION?

  11. WHY USE RUBYMOTION? ▸ Native apps, Ruby syntax ▸ Keep

    your editor ▸ Save time and share resources ▸ Third-party libraries ▸ Lower learning curve ▸ Tight knit community
  12. TEXT TRULY NATIVE APPS

  13. CROSS-PLATFORM motion-game ▸ Library for creating cross-platform games ▸ Wrapper

    for cocos2d and box2d flow ▸ A set of cross platform libraries (“the missing standard lib”) ▸ Still in early development
  14. THIRD-PARTY LIBRARIES

  15. http://motion-toolbox.com

  16. None
  17. TEXT ProMotion CDQ (Core Data Query) AFMotion SDWebImage

  18. *POTION FAMILY MEET THE

  19. TEXT THE *POTION FAMILY (Android) (macOS) WhitePotion (tvOS) BlackPotion (iOS)

  20. TEXT RedPotion ProMotion CDQ (Core Data Query) AFMotion SDWebImage

  21. A DARK ROOM CREATOR OF leanpub.com/survivingtheappstore

  22. GREAT DOCUMENTATION

  23. None
  24. None
  25. motioneers.herokuapp.com

  26. GETTING STARTED WITH REDPOTION

  27. bit.ly/build-a-mobile-app ▸ Install Xcode ▸ Make sure you have iOS

    9.3 SDK installed: ▸ xcodebuild -showsdks ▸ Clone the demo repository ▸ Install the RubyGem and CocoaPod dependencies
  28. RedPotion Core Concepts ProMotion ▸ ViewControllers Screens RMQ - RubyMotion

    Query ▸ “jQuery for RubyMotion” ▸ Views/Events/Styling RedAlert ▸ Alerts and Action Sheets AFMotion ▸ Easy to use HTTP Client CDQ - CoreData Query ▸ Wraps CoreData in an ActiveRecord-like syntax rake newclear ▸ When things go wrong, just nuke it.
  29. None
  30. None
  31. bit.ly/build-a-mobile-app