Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.45 KB

README.md

File metadata and controls

34 lines (28 loc) · 1.45 KB

#Meteor Best Practices

This project was created to act as starting point for your projects and to combine all of current best practices for Meteor.js.

##Stack:

##Goals:

  • Use "packages for everything" to make the application modular-first
  • Build small, very specific custom packages that do one thing very well
  • Split up files into their purposes; ie: client only code goes in client.js
  • Security. Security. Security. (Security)
  • Test the "important" things.

##Demo: http://best-practices.meteor.com/

##Coding Guidelines:

##Questions:

  • Q: Why "packages for everything"? A:
    1. No need to use Meteor.isClient or Meteor.isServer unless the code is common between the client and server. The package.js definition file tells meteor which files should be run.
    2. Keeps code very DRY.
    3. Very easy to maintain.
    4. Faster compile times.
    5. Smaller production files.