In the past couple of years, we have delivered several projects successfully which were based on MVC + KnockoutJS, they all applied the same structure or pattern, so I was thinking to get them out from several projects which we might reuse in the future projects, here is what I’d like to share, you may adopt it, or question it.
It is important to have a clear and fixed folder structure that makes your codes easy to maintain, more readable, more extendable, and also helps new team members ramp up quickly, makes the project folder structure more stable.
The collapsed and expanded folder structure looks like below:
– Common: the global level methods, like settings.js, utils.js
Choosing a Global Software Development Partner to Accelerate Your Digital Strategy
To be successful and outpace the competition, you need a software development partner that excels in exactly the type of digital projects you are now faced with accelerating, and in the most cost effective and optimized way possible.
– Models: you may want the models are reusable for different pages, then you can place all [models.js] under Models folder directly, alternately, you can separate models by modules and pages folder, but that depends.
– Lib: all custom libraries.