The purpose of this project is to provide image processing
http://localhost:3000/api/imagesRequired query strings to work:
- filename => The name of the file (encenadaport, fjord, icelandwaterfall, palmtunnel, santamonica or any newly added filename without extension)
- width an integer value specifying the desired width (Example: 300)
- height an integer value specifying the desired height (Example: 200)
Example:
http://localhost:3000/api/images?filename=fjord&width=300&height=100or
curl http://localhost:3000/api/images?filename=fjord&width=300&height=100To start using the project don't forget to run the following command.
npm installnpm run start:devnpm run startTo test the project, run the following command.
Things to check before running the command:
- npm is installed and running a recent version
npm run testThe test command runs linting, prettier and converts typescript to javascript.
The converted code is in the dist folder.
To lint separately type:
npm run lintTo run prettier separately run:
npm run prettier