Project for Udacity Full Stack Nanodegree
- Express
- Sharp
- TypeScript
- SuperTest
- Es-Lint
- Prettier
- Jasmine
├── spec
├── src
├── images
test
- Script to run the testslint
- Script to run ESList across the projectstart
- Script to start the projectbuild
- Script to build the projectprettier
- Script to run prettier throughout the projecttypescript
- Script to make the TypeScript build
-
Run
npm install
This installs all the dependency required to run the project. -
Run
npm start
This will build and start the local server on port8000
. -
Open
localhost:8000
in any of the browser. -
Please provide the file name in the following format of the page:
http://localhost/image?fileName="YOUR_FILE_NAME"&height="IMAGE_HEIGHT"&width="IMAGE_WIDTH"
There are three query params required:
- fileName - Name of the files. Available options for file names are: _ encenadaport _ fjord _ icelandwaterfall _ palmtunnel _ santamonica
- Height - Required height of the file.
- Width - Required width of the file
User can import files and resize them according to their own need. The converted files will be available in the directory: build/images
.
This project can be extended and created into a library for use.