Skip to content

This project is used to processing images and control their sizes by endpoint api.

Notifications You must be signed in to change notification settings

MohamedAlabasy/Udacity-Node.JS-Image-Processing

Repository files navigation

Udacity Node.JS Project Image Processing

Description:

This project is used to processing images and control their sizes by endpoint api.

Folder Structure

├── src
│   ├── routes
│   │   ├── api
│   │   │   │── utilities
│   │   │   │   └── validateData.ts => `To validate the image data`
│   │   │   │
│   │   │   │── guidance.ts => `for instructions on using the project`
│   │   │   └── pictures.ts => `for operations on the photo`
│   │   │   
│   │   └── index.ts => `import all routes and export it to main index`
│   │
│   │
│   ├── tests  => `for testing purposes`
│   │   ├── helpers
│   │   │   └── reporter.ts
│   │   │
│   │   ├── indexSpec.ts => `for test endpoint api` 
│   │   └── picturesSpec.ts => `for pictures function`
│   │
│   │
│   ├── utilities => `for logger middleware`
│   │   └── logger.ts => `for log method & url`
│   │
│   │
│   └── index.ts => `to run the server`
└──

To run this project

Step 1 : To use this project must install Node.js, Then Download the source code

git clone https://github.com/MohamedAlabasy/Udacity-Node.JS-Image-Processing.git

Step 2 : Enter the project file then install package

npm i

Step 3 : To run project

node run start

Step 4 : Open the browser and click : http://localhost:3000


to run eslint to check error

npm run lint

to run eslint and auto fixed error

npm run lint:f

to compile the TS code

npm run build

to run the JS code

node dist/index.js

Releases

No releases published

Packages

No packages published