Source code can be gotten from here: https://github.com/dragos-durlut/nodejs-image-delivery-microservice/
General installation notes can be found in the README.md
To run the microsevice you will need to execute command
npm run start
To see the stats you can go to http://localhost:8080/stats in Postman or in a broswer window. You should see something like this:
In order to get the resized image you call this address in Postman or in Web Browser: http://localhost:8080/image/eye.jpg/300×300
Important note: you must have the image in
dist/images/original/ folder or you will get a 404 status.
You will get a 200 response along with the resized image:
You will also notice the creation of a folder that mathches thr requested resolution.