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

Getting Started with MeteorJS

cggaurav
April 12, 2013

Getting Started with MeteorJS

An introduction to MeteorJS.

cggaurav

April 12, 2013
Tweet

Other Decks in Technology

Transcript

  1. What is Meteor.js? Meteor is an open source JS framework

    to build real time apps! Its nothing new, based on libraries that you already know Node.js, jQuery, socket.io,MongoDB.
  2. Why Meteor? • Simple install and setup. • Screams Real

    Time. • No unnecessary DOM manipulations needed. • Smart packages, ui-accounts, backbone, email, d3 • Useful for Protypting • Its all Javascript. Double Edged Sword.
  3. Why not Meteor yet? 1. Meteor doesn’t have server-side rendering

    yet, so perhaps not scalable for sites that need super fast loads on the client. 2. Meteor's autopublish is not yet proven to scale for a few thousand users. [Think Quora using Meteor.js] 3. Unstable packages, as of April 2013, the smart packages have to grow for widespread use of Meteor. 4. Security is a concern, as you can edit/drop DBs via the console. The insecure package 'kinda' solves this.
  4. 7 principles of Meteor 1. Data on the Wire. Don't

    send HTML over the network. Send data and let the client decide how to render it. 2. One Language. Write both the client and the server parts of your interface in JavaScript. 3. Database Everywhere. Use the same transparent API to access your database from the client or the server. 4. Latency Compensation. On the client, use prefetching and model simulation to make it look like you have a zero-latency connection to the database. 5. Full Stack Reactivity. Make realtime the default. All layers, from database to template, should make an event-driven interface available. 6. Embrace the Ecosystem. Meteor is open source and integrates, rather than replaces, existing open source tools and frameworks. 7. Simplicity Equals Productivity. The best way to make something seem simple is to have it actually be simple. Accomplish this through clean, classically beautiful APIs.