As far as I know, there are two types for structuring in BE:
Type 1: Put all related codes into specific folder. For example (I prefer using NodeJS for examples)