kredito-snippets README
This repo contains custom snippets for Kredito dev team
Conventions
We use Clean Architecture (kind of)
Prefix
this is the basic prefix for code in src
k.{model|repository|entity|repository-interface|use-case|api|sns|schedule}
for code in tests we have
k.{tests|factory}
Languaje suport
only typeScript
Folder structure
we follow the next folder structure in /src . all in kebab-case
follow this convention is very important to use many of the snippets.
@data
|---models
| |---schemas
| | *---age.schema.ts
| *---dog.model.ts
|---integrations
| *---api.integration.ts
*---repositories
|---dog.repository.ts
@domain
|---entities
| *---car.entity.ts
|---repository-interfaces
| *---payment.repository-interface.ts
*---use-cases
*---get-payment.use-case.ts
@presetation
|---api
| *---get-registers.ts
|---sns
| *---new-register.ts
*---schedules
*---every-weak.ts
we follow the next folder structure in /tests .
@tests
|---@data
| |---models
| | |---schemas
| | | *---age.schema.spec.ts
| | *---dog.model.spec.ts
| |---integration
| | *---api.integration.spec.ts
| *---repositories
| |---dog.repository.spec.ts
|
|---@domain
| |---factories
| | *---entity.factory.ts
| |---entities
| | *---car.entity.spec.ts
| |---repository-interfaces
| | *---payment.repository-interface.spec.ts
| *---use-cases
| *---get-payment.use-case.spec.ts
|
*---@presentation
|---factories
| *---use-case.factory.ts
|---api
| *---get-registers.spec.ts
|---sns
| *---new-register.spec.ts
*---schedules
*---every-weak.spec.ts
Data snippets
Model snippets
| |