image processing api for resizeing images and return endpoint to access the image using it
To get started:
1-clone the repo on the machine
2-install all dependencies by running 'npm install' command
3-run npm test to test and build the project all tests must success
4-but the images you want to resize in the images/full folder
npm run start
-and then head to your browser at localhost:3000
and it should be working.
npm run test
npm run build
node dist/index.js
I'm using prettier npm run prettier I'm using eslint npm run lint
• encenadaport.jpg • fjord.jpg • icelandwaterfall.jpg • palmtunnel.jpg • santamonica.jpg
1)http://localhost:3000/api/image_resize?name=fjord.jpg&height=300&width=300
(retrieve the image with hight=300 and width=300 which name fjord.jpg_height300_width300.jpg if you use image format he will use it)
2)http://localhost:3000/api/image_resize?name=fjord&height=300&width=300
(you can also use it without image format he will make it default jpg)
npm run test
to test the projectnpm run build
convert typescript to javascript in dist foldernpm run run
build and run the projectnpm lint
run eslintnpm run prettier