Your SlideShare is downloading. ×
Directory structure for large Meteor apps
Copyright © 2013 Exponential.io
Exponential.io
Convert spreadsheets to apps
Akba...
What is a large project?
KLOC
Team
Complexity
Solution: Modules
Modular
Architecture
Solution: Break Modules into Components
UI Components
• Add Form
• Edit Form
• Details View
• List View
• Delete
Application Directory Structure
collections
compatibility
conf
lib
routers
startup
stylesheets
subscriptions
views
Client ...
Module Directory Structure
/client/
../collections/users.js
../conf/users.js (*)
../lib/users.js (*)
../routers/users.js
....
Where to put your module?
in the Application Directory Structure
vs.
in a Package
Copyright © 2013 Exponential.io
@exponential_io
akbar at exponential.io
Thank you
Additional Resources
http://tech.exponen...
Upcoming SlideShare
Loading in...5
×

Directory structure for large meteor apps

3,935

Published on

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

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,935
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Transcript of "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

×