getting started with meteor for android - almog koren, goplatfarm
TRANSCRIPT
23 2 Presentation by Almog Koren • Jun 11, 2015
Developer MeteorJS / NodeJS Hacker
CTO Platfarm Formerly founder
of Scoreoid
Developer / Entrepreneur Almog Koren
Speaker / Evangelist Speak at events like Casual Connect Kiev, GameIS, ect..
Scuba Diver & Rock Climber
Who Am I?
23 8 Presentation by Almog Koren • Jun 11, 2015
WHAT IS METEOR?
• Open source platform for building web and mobile (Cordova) apps in JavaScript
• Built to power the next generation of apps
• Rich user interfaces
• Collaborative multi-user applications
• Cross-platform apps (web, IOS, Android)
• Fast development
23 9 Presentation by Almog Koren • Jun 11, 2015
HOW MODERN APPS LOOK & FEEL
• Focus on your app’s unique features instead of wrangling network code, websocket, etc.
• Meteor’s Goal: Facebook-quality apps without Facebook’s money
23 10 Presentation by Almog Koren • Jun 11, 2015
WAIT THIS IS AN ANDROID EVENT
Why Meteor for Android
23 12 Presentation by Almog Koren • Jun 11, 2015
• We needed to be able to move fast (prototyping)
• Database, server and web interface
• Connect different devices
• Native or Cordova at some point
• Real-time and reactive
WHY WE CHOOSE METEOR
23 13 Presentation by Almog Koren • Jun 11, 2015
METEOR DDP
• Distributed Data Protocol which is like "REST for websockets”
• A simple protocol for fetching structured data from a server, and receiving live updates when that data changes.
• https://github.com/delight-im/Android-DDP
• https://github.com/kenyee/android-ddp-client
23 15 Presentation by Almog Koren • Jun 11, 2015
USING DDP
• Creating a new instance of the DDP client
23 17 Presentation by Almog Koren • Jun 11, 2015
USING DDP
• Deleting data from a collection
• Subscribing to data from the server
• Creating a new account (requires accounts-password package)
23 19 Presentation by Almog Koren • Jun 11, 2015
WHAT IS METEOR
• A library of packages: pre-written, self-contained modules that you might need in your app.
• A command-line tool called meteor.
• Built on Node.JS (Fibers)
• Mongo DB
• Structured framework
• Easy to learn
• Real-time or Reactivity
• Community
23 20 Presentation by Almog Koren • Jun 11, 2015
WHAT IS METEORJS
PURE JAVASCRIPT Write your entire app in pure
JavaScript.
LIVE PAGE UPDATES Just write your templates.
DATA SYNCHRONIZATION No more loading your data
from REST endpoints.
23 21 Presentation by Almog Koren • Jun 11, 2015
WHAT IS METEORJS
LATENCY COMPENSATION
Immediate updates no waiting for the server.
HOT CODE PUSHES
Update your app while users are connected.
PRIVILEGED ENVIRONMENT
Write all of your code in JavaScript.
23 22 Presentation by Almog Koren • Jun 11, 2015
WHAT IS METEORJS
APPLICATION BUNDLES
One command to compile your entire application into a tarball..
INTEROPERABILITY
You can connect anything to Meteor.
SMART PACKAGES
Templating, testing, or DOM manipulation frameworks.
23 23 Presentation by Almog Koren • Jun 11, 2015
One Language JavaScript
Latency compensation
Embrace The Ecosystem
Data on the wire
Database everywhere
Full Stack Reactivity
Simplicity Equals Productivity
23 24 Presentation by Almog Koren • Jun 11, 2015
COMPONENTS / DEEP DIVE
• LiveQuery – Realtime database queries
• DDP – Subscribe to changes in the database
• MiniMongo – Run database queries on the client
• Tracker – Rerun functions when data changes
• Blaze – Keep the view up-to-date with your data
http://meteor.com/projects
23 25 Presentation by Almog Koren • Jun 11, 2015
DEMO Meteor Publish / Subscribe, Meteor Methods and Allow / Deny
23 26 Presentation by Almog Koren • Jun 11, 2015
CHOOSING METEOR
The Community, App and getting started
23 28 Presentation by Almog Koren • Jun 11, 2015
WORKPOP - BUILT ON METEOR
• Raised $7.9 million Series A led by Trinity Ventures
“the most rapid prototyping, iteration and development we’ve ever seen from an early stage company”
23 29 Presentation by Almog Koren • Jun 11, 2015
GROWING RAPIDLY
• Over 150 meetup groups around the world – meteor.meetup.com
• Over 2000 community-authored packages - atmospherejs.com
• Discover Meteor has made over $300,000 in book sales (as of Sept. 2014)
• Ranked #11 on GitHub (just passed Backbone, will soon pass Rails)
23 33 Presentation by Almog Koren • Jun 11, 2015
LEARNING METEOR
• Meteor.com - http://meteor.com/learn #• Official Meteor tutorial - http://meteor.com/install #• Discover Meteor - http://book.discovermeteor.com#• EventedMind - https://www.eventedmind.com#• Stack Overflow, tagged Meteor • Official Meteor Docs - http://docs.meteor.com