I'm relatively new to software development and one concept that I find challenging is organizing the directory structure of various projects. As I prepare to embark on an Express project, I prefer keeping controller classes separate from route callbacks for better organization. However, I am unsure about the ideal location to place my controllers within the project. Currently, my project structure looks like this:
.
├── bin
├── config
├── controllers
├── migrations
├── models
├── public
│ ├── images
│ ├── javascripts
│ └── stylesheets
├── routes
├── seeders
└── views
The Sequelize CLI generated this structure, but I inserted controllers
into the main directory. Should I move controllers to a src
folder instead? I would appreciate any guidance on how to optimize this setup efficiently. There are numerous opinions and conflicting information available, so clarity on this matter would be invaluable. Thank you.