KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm looking to implement backbone into a large web project with multiple "apps" that will be using it and I'm trying to figure out a good way to organize my files. The two I've come up with so far are: js +- models | +- search | | +- result.js | | +- ... | +- cart | | +- item.js | | +- ... | ... +- collections | +- search | | +- results.js | | +- ... | +- cart | | +- items.js | | +- ... | ... +- views | +- search | | +- resultRow.js | | +- ... | +- cart | | +- itemRow.js | | +- ... | ... +- routers | +- search | +- cart | ... And js +- search | +- models | | +- result.js | | +- ... | ... | +- collections | | +- results.js | | +- ... | ... | +- views | | +- resultRow.js | | +- ... +- cart | +- models | | +- item.js | | +- ... | ... | +- collections | | +- items.js | | +- ... | ... | +- views | | +- itemRow.js | | +- ... +- routers | +- search | +- cart | ... I'm leaning towards the latter as it has clearer lines between sections of the website and keeps the apps together but our current structure of the back-end framework is much more like the former.
Tags (comma-separated)
Save Edits
Cancel