DEV Community

Discussion on: Folder Structure for Modern Web Applications

Collapse
 
raythurnevoid profile image
Ray Thurne Void

I like to organize folders per functionality context rather than architecture layer. For instance i can keep only a components and a utile folder, everything else depends on the project. Eg: eg i may have an auth folder for all things related to authentication, or a transformers folder to store all the modules that are used to convert a data type to another or a cart folder for all the modules related to my e-commerce cart logics.

I also like to design my code to minimize the number of call stacks.

Collapse
 
noruwa profile image
Obaseki Noruwa

Folder by functionality is also a great method of structuring web application, Other devs can easily understand your application features 👍🏾 .