lessons learned about meteorjs
DESCRIPTION
A talk I gave at the local MeteorJS meetup. Lessons learned about MeteorJS while developing Linkly a Meteor app - http://linklyapp.com/TRANSCRIPT
241Presentation by Almog Koren Oct 21, 2014
METEORA better way to build apps.
242Presentation by Almog Koren Oct 21, 2014
Frontend developer,
MeteorJS / NodeJS Hacker
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?
243Presentation by Almog Koren Oct 21, 2014
Lessons Learned
244Presentation by Almog Koren Oct 21, 2014
• Goal – build a real world production app using Meteor
• https://linklyapp.com/
245Presentation by Almog Koren Oct 21, 2014
METEOR PUBLISH & SUBSCRIBE
• The base for everything.
• Always start with this.
• Security, security
• Meteor (mongo) find starts with this.
246Presentation by Almog Koren Oct 21, 2014
EXAMPLES
• Use id’s
• Mongo operators & fields
247Presentation by Almog Koren Oct 21, 2014
MONGO FIND
• Used everywhere and all the time.
• Learn mongo operators.
• Client and server
• Remember only what is published is return.
248Presentation by Almog Koren Oct 21, 2014
EXAMPLES
• Simple find
• Client side
249Presentation by Almog Koren Oct 21, 2014
EXAMPLES
• $in
• Learn them all very well - http://bit.ly/1huk2NU
2410Presentation by Almog Koren Oct 21, 2014
IRON-ROUTER
• Use controllers.
• waitOn function
• onBeforeAction
• Subscribe
• Limits
2411Presentation by Almog Koren Oct 21, 2014
EXAMPLES
• waitOn, onBeforeAction, Subscribe
2412Presentation by Almog Koren Oct 21, 2014
EXAMPLES
• Controller, limit
2413Presentation by Almog Koren Oct 21, 2014
COLLECTION2 & AUDIT-ARGUMENT-CHECKS
• A must for the DB not built in.
• Easy to setup.
• Do it as soon as you start.
2414Presentation by Almog Koren Oct 21, 2014
EXAMPLES
• Collection2
2415Presentation by Almog Koren Oct 21, 2014
EXAMPLES
• Audit check
2416Presentation by Almog Koren Oct 21, 2014
METEOR MIGRATION
• Very simple package.
• Developed by Percolate Studio.
• Great when things change.
• Let’s you update your DB back and forth.
2417Presentation by Almog Koren Oct 21, 2014
EXAMPLES
• Migrate up to version 2
2418Presentation by Almog Koren Oct 21, 2014
QUICK TIPS
• Use SSL on production (issue with proxy) - http://bit.ly/1nxSmMc
• Understand deps / tracker.
• Correct folder structure (server, client, lib).
• Analytics is a pain in reactive apps.
• Handlebars.JS – {{if}} {{else}}
• Blaze Template Engine
2419Presentation by Almog Koren Oct 21, 2014
• The Big Meteor List - http://bit.ly/meteorlist
2420Presentation by Almog Koren Oct 21, 2014
• https://www.discovermeteor.com/
2421Presentation by Almog Koren Oct 21, 2014
• https://www.eventedmind.com/
2422Presentation by Almog Koren Oct 21, 2014
2423Presentation by Almog Koren Oct 21, 2014
2424Presentation by Almog Koren Oct 21, 2014
Q&A
2425Presentation by Almog Koren Oct 21, 2014
THANK
YOU