├── .env.example ├── .eslintrc.js ├── .gitignore ├── .prettierrc ├── README.md ├── jest.config.js ├── package.json ├── src ├── __tests__ │ ├── fixtures │ │ ├── cat_dog_msk.jpg │ │ ├── cat_dog_src.jpg │ │ └── output.webp │ ├── integration │ │ └── image-processing.test.ts │ └── setup.ts ├── app.ts ├── config │ ├── cloudinary.ts │ └── env.ts ├── controllers │ └── image.controller.ts ├── middleware │ ├── error.middleware.ts │ ├── http-logger.ts │ ├── upload.middleware.ts │ └── validation.middleware.ts ├── routes │ ├── docs.route.ts │ └── image.route.ts ├── services │ ├── image-processing.service.ts │ └── photo-ai.service.ts ├── types │ └── index.ts └── utils │ ├── custom-error.ts │ └── logger.ts └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/README.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/package.json -------------------------------------------------------------------------------- /src/__tests__/fixtures/cat_dog_msk.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/__tests__/fixtures/cat_dog_msk.jpg -------------------------------------------------------------------------------- /src/__tests__/fixtures/cat_dog_src.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/__tests__/fixtures/cat_dog_src.jpg -------------------------------------------------------------------------------- /src/__tests__/fixtures/output.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/__tests__/fixtures/output.webp -------------------------------------------------------------------------------- /src/__tests__/integration/image-processing.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/__tests__/integration/image-processing.test.ts -------------------------------------------------------------------------------- /src/__tests__/setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/__tests__/setup.ts -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/app.ts -------------------------------------------------------------------------------- /src/config/cloudinary.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/config/cloudinary.ts -------------------------------------------------------------------------------- /src/config/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/config/env.ts -------------------------------------------------------------------------------- /src/controllers/image.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/controllers/image.controller.ts -------------------------------------------------------------------------------- /src/middleware/error.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/middleware/error.middleware.ts -------------------------------------------------------------------------------- /src/middleware/http-logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/middleware/http-logger.ts -------------------------------------------------------------------------------- /src/middleware/upload.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/middleware/upload.middleware.ts -------------------------------------------------------------------------------- /src/middleware/validation.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/middleware/validation.middleware.ts -------------------------------------------------------------------------------- /src/routes/docs.route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/routes/docs.route.ts -------------------------------------------------------------------------------- /src/routes/image.route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/routes/image.route.ts -------------------------------------------------------------------------------- /src/services/image-processing.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/services/image-processing.service.ts -------------------------------------------------------------------------------- /src/services/photo-ai.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/services/photo-ai.service.ts -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /src/utils/custom-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/utils/custom-error.ts -------------------------------------------------------------------------------- /src/utils/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/src/utils/logger.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mabrur-h/image-object-replacer/HEAD/tsconfig.json --------------------------------------------------------------------------------