This repo contains a basic resize for image app in Typescript in an API.
Your must install the following in order to use the project:
- Node & NPM
- Typescript (install it globally)
- Jasmine
To get started:
1-Download the zip file locally.
2-using cd
command.
3-install all dependencies using npm.
npm run start
-and then head to your browser at localhost:3000
and it should be working.
npm run build
node dist/index.js
npm run test
I'm using prettier and eslint
npm run prettier
npm run lint
• encenadaport • fjord • icelandwaterfall • palmtunnel • santamonica
1)Localhost:5000/api/images?imageName=fjord&hight=100&width=100
(retrieve the image with hight=100 and width=100 which name fjord_100_100)
2)Localhost:5000/api/images?imageName=fjod&hight=100&width=100
(retrieve the message “image is not found ,please enter the right name“)
3)Localhost:5000/api/images?imageName=fjord&hight=j&width=100
(retrieve the message “please enter a valid size“)
4)Localhost:5000/api/images?imageName=fjord&hight=100
(retrieve the message" sorry there is a missing parameter")