Skip to content

Latest commit

 

History

History
54 lines (46 loc) · 878 Bytes

README.md

File metadata and controls

54 lines (46 loc) · 878 Bytes

Image-Comparer

Tool to check if 2 images are same

Features:

  • Ability to test how different 2 images are by passing 2 image URL's
  • Support CORS

Technical Features:

  • Babel support with node environment
  • Logging
  • Testing with Jest
  • Airbnb eslint
  • Hooks for commits and push to maiantain code quality.

Install

yarn

Debug

Uses chrome inspect flag for debugging.

npm run serve:debug

Testing

npm run test

Build

npm run build

Running Build Version Locally

cd dist/
node index.js

Using Docker

docker build -t image-comparer .
docker run --shm-size=1gb -p 8080:8080 -h 127.0.0.1 -d  image-comparer

Using Postman To Test

Via Postman -

url - http://localhost:8080/compare-images
method - POST
Payload - {"imgUrl1": "image url", "imgUrl2": "image URL"}
Type - RAW (Application/JSON)