Shared

It is where modules, providers, error handlers, connection configuration, app and server are located.

.
└── shared
    ├── container
    │   ├── modules
    │   │   ├── entities
    │   │   │   └── Entity.ts
    │   │   ├── migrations
    │   │   │   └── BaseMigration.ts 
    │   │   ├── repositories
    │   │   │   ├── fakes
    │   │   │   │   └── FakeBaseRepository.ts
    │   │   │   ├── BaseRepository.ts
    │   │   │   └── IBaseRepository.ts
    │   │   └── validators
    │   │       └── baseSchema.ts
    │   ├── providers
    │   │   ├── [name]
    │   │   │   ├── dtos
    │   │   │   │   └── IProviderDTO.ts
    │   │   │   ├── fakes
    │   │   │   │   └── FakeImplementation.ts
    │   │   │   ├── implementations
    │   │   │   │   └── Implementation.ts
    │   │   │   ├── models
    │   │   │   │   └── IProvider.ts
    │   │   │   ├── public
    │   │   │   │   ├── jobs.ts
    │   │   │   │   └── [something-shareable].ts
    │   │   │   └── index.ts
    │   │   └── index.ts
    │   └── index.ts
    ├── errors
    │   └── AppError.ts
    ├── typeorm
    │   ├── migrations
    │   │   └── hash.default.ts
    │   ├── seeds
    │   │   └── [name].ts
    │   ├── dataSources
    │   │   ├── fakes
    │   │   │   └── FakeDataSource.ts
    │   │   ├── mysqlDataSource.ts
    │   │   └── [name]DataSource.ts
    │   ├── index.ts
    │   └── runMigrations.ts
    ├── app.ts
    └── server.ts

Last updated

Was this helpful?