Intro to Meteor

Principles of Meteor

  • Data on the Wire
  • One Language
  • Database Everywhere
  • Latency Compensation
  • Full Stack Reactivity
  • Embrace the Ecosystem
  • Simplicity Equals Productivity

Let's build this thing

What are we covering?

  • Meteor Setup
  • File Structure
  • Templates
  • Collections
  • Helpers
  • Events
  • Security
  • Publish/Subscribe Pattern
  • Routes
  • Deployment
  • meteor mongo

Meteor Setup

    curl https://install.meteor.com/ | sh

1. Install Meteor

    meteor create today
    cd today

2. Create a new Meteor app

    meteor

3. Run the app

File Structure

  • /client -- only runs on the client
  • /server -- only runs on the server
  • /lib -- loaded before anything else
  • /public -- static assets (fonts, images)
  • /private -- accessible from server only via Assets API
  • /client/compatibility -- third-party libraries, loaded first
  • /tests & /node_modules -- not loaded anywhere

 

All other JS files outside these directories run on both the client and server.

For more details, read http://docs.meteor.com/#/full/structuringyourapp

Resources

Intro to Meteor

By mrbarbasa

Intro to Meteor

An introduction to Meteor covering the following topics: installation, collections, the publish/subscribe pattern, routes, templates, helpers, events, security, and deployment.

  • 893