Skip to content

Commit

Permalink
feat(dir_structure): specify second level division
Browse files Browse the repository at this point in the history
  • Loading branch information
mgechev committed Apr 6, 2016
1 parent a75e8b6 commit e121f98
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,28 @@ The guidelines described below are based on:
import {RegisterComponent} from './shop';
```

* The second level division of the directory structure, which is associated with given bounded context and excludes the nested bounded context, should be by either code unit type (as illustrated on the examples above) or by feature like shown below:

shop
├── edit-profile
│ ├── edit-profile.component.ts
│ ├── edit-profile.component.spec.ts
│ └── edit-profile.component.html
├── home
│ ├── home.component.ts
│ ├── home.component.spec.ts
│ └── home.component.html
├── register
│ ├── register.component.ts
│ └── register.component.spec.ts
├── common
│ ├── shopping-cart.model.ts
│ ├── shopping-item.model.ts
│ ├── checkout.service.ts
│ ├── user.model.ts
│ └── index.ts
└── index.ts

* In case given bounded context contains two or more child contexts, divide them into separate directories:

```
Expand Down

0 comments on commit e121f98

Please sign in to comment.