Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahmedsamyop/image-processing-api

Resize images by giving the width, height and file name, build with Node (Express)
https://github.com/ahmedsamyop/image-processing-api

express expressjs jasmine jasmine-tests node nodejs sharp supertest typescript

Last synced: 26 days ago
JSON representation

Resize images by giving the width, height and file name, build with Node (Express)

Awesome Lists containing this project

README

        

# Image Processing API

Resize images by giving the width, height and file name

## Build and Start Project

To Install all dependencies, run the following command

```bash
npm install
```

To build, run the following command

```bash
npm run build
```

To Start developing , run the following command

```bash
npm run dev
```

To Start Production , run the following command

```bash
npm start
```

## Testing | esLint | prettier

To test , run the following command

```bash
npm run test
```

To code formating prettier , run the following command

```bash
npm run format
```

To eslint , run the following command

```bash
npm run eslint
```

To eslint fix code , run the following command

```bash
npm run eslint:fix
```

## Endpoint

`/resize?filename=&width=&height=`

images Filename: `[encenadaport, fjord, icelandwaterfall, palmtunnel, santamonica]`

```bash
Example: localhost:3000/resize?filename=fjord&width=800&height=600
```