-
a User selects a file name and the required new image size, the api resizes the image and shows it on the web
-
the Api handels multiple requests by caching the resized images so it wont regenerated again.
-
Home Page:
http://localhost:3000/api
-
ProcessingImages:
http://localhost:3000/api/images
-
Required Query Parameters:
api/images?filename={image_name}&width={new-width}&height={new-height}
-
Install required modules:
npm i
-
To Run The Server:
npm run start
-
To Run Tests:
npm run test
-
To Build js:
npm run build
-
To Run prettier:
npm run prettier
-
To Run EsLint:
npm run lint
All you need to do is to hit the endpoint of processingimages by this format:
http://localhost:3000/api/images?filename={image_name}&width={new-width}&height={new-height}