JavaScript Project Structure JavaScript developers don't have the benefit of frameworks with common structures like Ruby on Rails or Django. This can lead to inconsistent projects which reduces the ability of a team to onboard new members or find critical code. So if you're looking for ideas and best practices for JavaScript projects look no further, the Big Nerd Ranch code wranglers are here to help! Main Schools of Thought Before we begin it helps to understand the main schools of thought seen in most major web frameworks. Linear Keep folder nesting to the minimum, and name folders in a general manner. Most notably seen in the Ruby on Rails web framework. Pros: Easy to understand. Easy to onboard new team members. Cons: As the project scales it can be hard to find the file you need in a folder with 20 or 30+ files. Naming conventions become paramount to avoid conflicts and navigate the project. Checkout this example Rails application to see it in action. Fractal Group similar components or resources together in nested folders.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to


Front-End,Back-End