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
- Host: GitHub
- URL: https://github.com/4lessandrodev/node-stream-file-edit-and-upload
- Owner: 4lessandrodev
- Created: 2022-02-26T17:35:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-26T17:37:20.000Z (over 4 years ago)
- Last Synced: 2025-01-07T14:23:55.361Z (over 1 year ago)
- Language: TypeScript
- Size: 1.53 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```