First Project for Advanced Full-Stack Web Development, NANODEGREE - Udacity.
API that can be used to scale images via URL parameters.
npm run build
Build the TypeScript files into JavaScript files and save the JS files in the ./build
directory.
npm run start
Start running the server on port 3000
.
npm run dev
Start running the server w/ nodemon from src/app.ts
npm run devjs
Start running the server w/ nodemon from build/app.js
npm run test
Build and run Jasmine
npm run jasmine
Run Jasmine w/o building
npm run prettier
Run Prettier
npm run lint
Run ESLint
Example: http://localhost:3000/api/resize/?filename=<ImageName>&height=<height>&width=<width>
Resize the image filename
using the Height
and Width
in the URL parameters.
Example: http://localhost:3000/api/preview/?filename=<ImageName>&height=<height>&width=<width>
Diplay resized image from assets/resized
Example: http://localhost:3000/api/preview/?filename=<ImageName>
Diplay full size image from assets/full
-
22/8 Image get displayed after resizing it. Error Handling for resize and preview routes.
-
22/8 Final Edits and added some comments for easier navigation in the code.
-
21/8 Added Preview Route.
-
20/8 EJS.
-
19/8 Added middleware to Check if same image is resized with same dimensions before.
-
18/8 Added middleware to check if image exists.
-
17/8 Added middleware to write existing image names into CSV file and another for resized images.
-
15/8 Configuration & Scripts.
-
14/8 Configured Jasmine.
-
13/8 Run the server on port 3000
http://localhost:3000
. -
13/8 Initialize Project Structure.
-
Find a string in a file : https://stackoverflow.com/a/17449232/
-
Write files names in directory to a file : https://stackoverflow.com/a/51125945/