This is a simple image resizing API using Nodejs/TS as part of Udacity's Advanced Full stack web development nanodegree.
- Clone the project repo and
cd
to backend directory npm install
- Add
.env
file containing your environment variables like.example.env
if needed - Run the server
npm start
Server is running by default at port 3000
you can check if it is running at http://localhost:3000/api/images
npm run test
npm run lint
// or
npm run lint:fix
npm run format
GET
/api/images
valid options (As query strings)
- fileName=fjord&width=123&height=333
- width
- height
Example of a valid request : /api/images?fileName=fjord&width=123&height=333