git clone the repo and install it's dependancies with:
npm i
to run the project with nodemon:
npm run start
to build the project:
npm run build
to build the project, and run jasmine tests:
npm run test
to delete images in output folder (windows):
npm run clear
Base: localhost:3000
uses localhost:3000/api/
on 404: blocked due to /*
on 200: returns route message.
uses localhost:3000/api/images
on 200: returns route message.
uses localhost:3000/api/images?filename=[string]&width=[number]&height=[number]
requires: filename, width and height.
on 200: saves image under images/output/*.jpg or fetches it if exists under images/output/ , returns an image.
on 404: blocked due to:
- missing parameter names.
- missing parameter values.
- non-nummerical characters on
widthorheight. - extra parameters other than the requirement.
- multiple tests for index, validatiors, image creation.
- deletion of generated test image after testing.