├── .gitignore ├── README.md ├── package.json ├── src ├── .env.example ├── application │ ├── dtos │ │ └── createTestDTO.ts │ ├── helpers │ │ ├── EventId.ts │ │ ├── databaseConfiguration.ts │ │ └── logger.ts │ ├── interfaces │ │ ├── common │ │ │ └── ILogger.ts │ │ ├── repositories │ │ │ ├── IGenericRepository.ts │ │ │ └── ITestRepository.ts │ │ └── services │ │ │ ├── IGenericServices.ts │ │ │ └── ITestServices.ts │ └── services │ │ ├── GenericServices.ts │ │ └── TestServices.ts ├── config │ └── express.config.ts ├── domain │ └── entities │ │ ├── BaseEntity.ts │ │ └── Test.ts ├── error-handling │ ├── BadRequestError.ts │ ├── CustomError.ts │ └── NotFoundError.ts ├── index.ts ├── infrastructure │ ├── repositories │ │ ├── GenericRepository.ts │ │ └── TestRepository.ts │ └── typeorm.config.ts └── interfaces │ ├── controllers │ └── test.controller.ts │ ├── middlewares │ ├── apikey.middleware.ts │ └── error.handler.middleware.ts │ └── routes │ └── test.route.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/package.json -------------------------------------------------------------------------------- /src/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/.env.example -------------------------------------------------------------------------------- /src/application/dtos/createTestDTO.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/application/dtos/createTestDTO.ts -------------------------------------------------------------------------------- /src/application/helpers/EventId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/application/helpers/EventId.ts -------------------------------------------------------------------------------- /src/application/helpers/databaseConfiguration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/application/helpers/databaseConfiguration.ts -------------------------------------------------------------------------------- /src/application/helpers/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/application/helpers/logger.ts -------------------------------------------------------------------------------- /src/application/interfaces/common/ILogger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/application/interfaces/common/ILogger.ts -------------------------------------------------------------------------------- /src/application/interfaces/repositories/IGenericRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/application/interfaces/repositories/IGenericRepository.ts -------------------------------------------------------------------------------- /src/application/interfaces/repositories/ITestRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/application/interfaces/repositories/ITestRepository.ts -------------------------------------------------------------------------------- /src/application/interfaces/services/IGenericServices.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/application/interfaces/services/IGenericServices.ts -------------------------------------------------------------------------------- /src/application/interfaces/services/ITestServices.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/application/interfaces/services/ITestServices.ts -------------------------------------------------------------------------------- /src/application/services/GenericServices.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/application/services/GenericServices.ts -------------------------------------------------------------------------------- /src/application/services/TestServices.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/application/services/TestServices.ts -------------------------------------------------------------------------------- /src/config/express.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/config/express.config.ts -------------------------------------------------------------------------------- /src/domain/entities/BaseEntity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/domain/entities/BaseEntity.ts -------------------------------------------------------------------------------- /src/domain/entities/Test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/domain/entities/Test.ts -------------------------------------------------------------------------------- /src/error-handling/BadRequestError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/error-handling/BadRequestError.ts -------------------------------------------------------------------------------- /src/error-handling/CustomError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/error-handling/CustomError.ts -------------------------------------------------------------------------------- /src/error-handling/NotFoundError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/error-handling/NotFoundError.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/infrastructure/repositories/GenericRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/infrastructure/repositories/GenericRepository.ts -------------------------------------------------------------------------------- /src/infrastructure/repositories/TestRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/infrastructure/repositories/TestRepository.ts -------------------------------------------------------------------------------- /src/infrastructure/typeorm.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/infrastructure/typeorm.config.ts -------------------------------------------------------------------------------- /src/interfaces/controllers/test.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/interfaces/controllers/test.controller.ts -------------------------------------------------------------------------------- /src/interfaces/middlewares/apikey.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/interfaces/middlewares/apikey.middleware.ts -------------------------------------------------------------------------------- /src/interfaces/middlewares/error.handler.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/interfaces/middlewares/error.handler.middleware.ts -------------------------------------------------------------------------------- /src/interfaces/routes/test.route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/src/interfaces/routes/test.route.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Z3r0J/nodejs-clean-architecture/HEAD/tsconfig.json --------------------------------------------------------------------------------