Organizing by Feature

Learn how to organize code by feature.

Let’s try to address some of the issues of the “organize by layer” approach.

Project structure

The next approach is to organize our code by feature:

buckpal
└── account
    ├── Account
    ├── AccountController
    ├── AccountRepository
    ├── AccountRepositoryImpl
    └── SendMoneyService

Explanation

In essence, we have put all the code related to accounts ...