More Related Content
Similar to Directory structure for large meteor apps (20)
Directory structure for large meteor apps
- 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. What is a large project?
KLOC
Team
Complexity
- 4. Solution: Break Modules into Components
UI Components
• Add Form
• Edit Form
• Details View
• List View
• Delete
- 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. Where to put your module?
in the Application Directory Structure
vs.
in a Package
- 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