hemax2000 / img-proccesser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

img-proccesser

to test the project: npm run test

to build the project: npm run build

to install dependencies: npm install

to start the project: npm start


links in for the project: -http://localhost:3000/api will show 'hello world;

-http://localhost:3000/api/image will show misiing inputs

-http://localhost:3000/api/image?filename=test.jpg&width=300&height=150 will show the picture

Changes

-added services file under src for logic and moved the img proccessing functionality there

-adjusted package.json according to the reviewer comments

-fixed the problem with the image endpoint and added extra input validation image

-added test for imgProccess function

-added appropiate typing for parameters and returns

-add .eslintigonre to igonre dist file

changes after 2nd review

-made new caching logic that will check if file with the provided parameters have been already cached and will retrive it if not will proccess the img and save in cache

-changed the proccessed image name to "nameWidthHeight.format"

-added failsafe if the user deleted the proccessed image manually

About


Languages

Language:TypeScript 89.4%Language:JavaScript 10.6%