The purpose of this project is to provide image processing
http://localhost:3000/api/images
Required 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=100
or
curl http://localhost:3000/api/images?filename=fjord&width=300&height=100
To start using the project don't forget to run the following command.
npm install
npm run start:dev
npm run start
To test the project, run the following command.
Things to check before running the command:
- npm is installed and running a recent version
npm run test
The test command runs linting, prettier and converts typescript to javascript.
The converted code is in the dist folder.
To lint separately type:
npm run lint
To run prettier separately run:
npm run prettier