This repo is created for Udacity Full Stack Developer course
To start application:
- Install NPM packages
npm i
- Transpile TS to JS
npm run build
- Start application
npm start
- Access URL http://localhost:3000/api/image?fileName=&width=&height=
Available image names can be found in /src/data/image folder. E.g. http://localhost:3000/api/image?fileName=icelandwaterfall&height=300&width=300
Cases to test:
- When endpoint are missing any one of the GET parameter
- When file name is not found
To run test:
npm run test
To run application in TS:
npm run dev