first project for udaacity advanced full-stack nano-degree
it's a simple image processing API that can be used to process images.
npm run build
to compile ts filesnpm run test
to run the testnpm run start
to start the servernpm run dev
to start developmentnpm run format
to run prettiernpm run lint
to run the linternpm run lint:fix
to run the linter to fix
{baseURL}/api/image?imageName=<image Name>&&width=<width>&&height=<height>
query parameters: imageName: the name of the image width: the width of the image height: the height of the image
- Clone the repository
git clone https://github.com/omar214/image-processing-API.git
- Go to the directory of the repository
cd image-processing-API
- install dependencies
npm install
4.add .env
file
PORT = 5000;
- Run the server
npm start
-
configute TS
-
configute prettier
-
configute ESLint
-
api route
- validate request
- validate is image exists
- do resize logic
- handle path better way
-
do cache logic
- if 1st time do resize
- if not first time send the cached image
-
send the file
-
handle if cached file is not found
-
configure jasmine
-
add tests
-
status code 304 when image is cached
-
lint
-
format
-
build
-
documentation