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

https://github.com/4lessandrodev/node-stream-file-edit-and-upload

testing stream - edit file and upload to s3
https://github.com/4lessandrodev/node-stream-file-edit-and-upload

Last synced: 9 months ago
JSON representation

testing stream - edit file and upload to s3

Awesome Lists containing this project

README

          

# File Upload - Node Stream

## Graphql file upload

- Using graphql-upload - createReadStream function.
- Crop and resize image using sharp.
- Create a copy to local folder.
- Upload edited file to aws s3.

### How to run this project
There are some linux commands on package.json.

First fill your .env with aws credentials.

```sh

$ cp ./.env.example ./.env

```

On linux feel free to run

```sh

$ yarn install
$ yarn start

```

On windows better use dev

```sh

$ yarn install
$ yarn dev

```