I usually structure my codebase following Clean Architecture principles, which helps ensure scalability.
If you look at the root folder structure of the projects I work on, you’d see something like this (for more complex projects, it might vary, but the general idea remains the same):