You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,20 +150,21 @@ In the project directory, you can run:
150
150
151
151
### Namings
152
152
153
-
`Folder Namings`: Use `kebab-case` format
154
-
`File Namings`: Alls files should include target name like (auth) and implementation responsibility like (component, helper, styles) as result we should receive (auth.component.ts, auth.store.ts, auth.styles.ts and etc.)
155
-
`Hooks`: Starting with keyword `use` and using format `camelCase` (useSomeHook)
156
-
`Constants`: CONSTANT_CASE, SCREAMING_KEBAB_CASE
153
+
-`Folder Namings`: Use `kebab-case` format
154
+
-`File Namings`: Alls files should include target name like (auth) and implementation responsibility like (component, helper, styles) as result we should receive (auth.component.ts, auth.store.ts, auth.styles.ts and etc.)
155
+
-`Hooks`: Starting with keyword `use` and using format `camelCase` (useSomeHook)
156
+
-`Constants`: CONSTANT_CASE, SCREAMING_KEBAB_CASE
157
157
`Functions, Variables, class Methods or Properties`: camelCase (token, userName, getUser, findUser)
-`Private Properties or Methods`: Starting with `underline` and using format `camelCase` (\_userName, \_email, \_someDataName)
160
160
161
161
### App Layers
162
162
163
-
`Domain Layer`: Shouldn't has intersections with UI layer. How we should communicate with Domain? We should include our domain implementations into our Containers and inject these implementations into our components using `useInjection` hook from `IoC`. All containers type must be declared in implementation file using generic `ServiceIdentifier<T>` from containers/typings. (ex. const AuthServiceType: ServiceIdentifier<AuthUseCase> = Symbol('AuthService')) we do not have dependencies on `implementations` like (AuthService or AuthUseCaseImpl), only on the `interfaces` (AuthUseCase).
164
-
`Core layer`: Contains main part of application which can will be included in container layer. `Store` also should be included in container as `singleton`.
165
-
`Container Layer`: It is 'bridge' between all layers
166
-
`UI Layer`: Is responsible for the UI part, for everything that user can see in his browser
163
+
-`Domain Layer`: Shouldn't has intersections with UI layer. How we should communicate with Domain? We should include our domain implementations into our Containers and inject these implementations into our components using `useInjection` hook from `IoC`. All containers type must be declared in implementation file using generic `ServiceIdentifier<T>` from containers/typings. (ex. const AuthServiceType: ServiceIdentifier<AuthUseCase> = Symbol('AuthService')) we do not have dependencies on `implementations` like (AuthService or AuthUseCaseImpl), only on the `interfaces` (AuthUseCase).
164
+
-`Core layer`: Contains main part of application which can will be included in container layer. `Store` also should be included in container as `singleton`.
165
+
-`Container Layer`: It is 'bridge' between all layers
166
+
-`UI Layer`: Is responsible for the UI part, for everything that user can see in his browser
0 commit comments