Directory structure for large meteor apps

1,187 views

Published on

How to structure large Meteor applications, including a standard module structure.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,187
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Directory structure for large meteor apps

  1. 1. Directory structure for large Meteor apps Copyright © 2013 Exponential.io Exponential.io Convert spreadsheets to apps Akbar S. Ahmed akbar@exponential.io @exponential_io
  2. 2. What is a large project? KLOC Team Complexity
  3. 3. Solution: Modules Modular Architecture
  4. 4. Solution: Break Modules into Components UI Components • Add Form • Edit Form • Details View • List View • Delete
  5. 5. Application Directory Structure collections compatibility conf lib routers startup stylesheets subscriptions views Client Both Server collections lib packages public private lib publications startup
  6. 6. Module Directory Structure /client/ ../collections/users.js ../conf/users.js (*) ../lib/users.js (*) ../routers/users.js ../startup/user.js (*) ../stylesheets/users.css (*) ../subscriptions/users.js ../views/users/ add.html, add.js details.html, details.js edit.html, edit.js list.html, list.js list_item.html, list_item.js Client Both Server /collections/users.js /lib/users.js (*) /public/images/users/ /server/ ../publications/users.js ../startup/users.js (*) (*) = optional
  7. 7. Where to put your module? in the Application Directory Structure vs. in a Package
  8. 8. Copyright © 2013 Exponential.io @exponential_io akbar at exponential.io Thank you Additional Resources http://tech.exponential.io/meteor/building-large-modular-apps-meteor/ http://www.matb33.me/2013/09/05/meteor-project-structure.html https://github.com/oortcloud/unofficial-meteor-faq#where-should-i-put-my-files We’re Hiring! JavaScript/Meteor (non-trivial) Mongo Aggregation Framework Plus lots of consulting projects

×