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

Craft Collaborative Apps with Realm (JP 🇯🇵 + EN 🇺🇸)

Craft Collaborative Apps with Realm (JP 🇯🇵 + EN 🇺🇸)

This talk will introduce into the open-source Realm Mobile Database and show how the Realm Mobile Platform completes it by server-side components. This allows you to treat synchronization and network as implementation detail in your technology stack. Features like live collaboration, which would have been a major undertaking, become all of the sudden easily available to every developer. This talk shows you how you can craft reactive apps with a database which takes care of the rest.

Marius Rackwitz

March 02, 2017
Tweet

More Decks by Marius Rackwitz

Other Decks in Technology

Transcript

  1. Craft Collaborative Apps with Marius RACKWITZ @mrackwitz [email protected] realm ،

    ف ٔ ׾ ⡲ ׷ ؝ ٓ ن ٖ խ ء ّ ٝ ׾ ⢪ ׏ ג ٦
  2. [email protected] // Person.swift import UIKit import RealmSwift class Person: Object

    { dynamic var name = "" dynamic var age = 0 let children = List<Person>() let parents = LinkingObjects(fromType: Person.self, property: "children") } let person = Person() person.name = "Craig" person.age = 47 let realm = try! Realm() try! realm.write { realm.add(person) } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 realmSampleApp Generic iOS Device
  3. [email protected] Swift class Account { dynamic var amount: Money dynamic

    var currency: Currency } JSON { “amount”: 1000.45, “currency”: “USD” } POST %7B%E2%80%9Camount%E2 %80%9D%3A+1000.45%2C+ %E2%80%9Ccurrency%E2%80 %9D%3A+%E2%80%9CUSD… Dictionary [ “amount”: Double, “currency”: String ] And decode that back on the server…
  4. Built-in Notifications
 Realmͷ௨஌ػೳ [email protected] On Individual Properties (KVO) ぐفٗػذ؍ך㢌刿׾湊鋔(KVO) On

    Objects ぐؔـآؙؑزך㢌刿׾湊鋔 On Collections ؝ؙٖءّٝך㢌刿׾湊鋔 On Whole File ؿ؋؎ٕⰋ⡤ך㢌刿׾湊鋔 On All Realms ׅץגךRealmؿ؋؎ٕך㢌刿׾湊鋔
  5. Coupon DC9WP Coupon DC9WP coupon.code = DC9WP coupon.isValid = true

    1 2 3 validate() Event Handling [email protected] ؙ٦هٝ ؙ٦هٝ 嗚鏾
  6. Special Realms 暴ⴽזRealm [email protected] /__admin.realm Single source of truth of

    all permissions ׅץגך埄ꣲ׾♧⯋盖 椚ׅ׷ /~/__management.realm Modify permissions 埄ꣲ׾㢌刿ׅ׷ /~/__permission.realm Mirrors permissions affecting this user 埄ꣲך朐䡾׾♧鋮٥然 钠ׅ׷