yt-aws-saver.mp4
This project was created as a study case to understand more about streams, threads, queues, workers, concurrency and parallelism in Node.js.
Key words: Study Case · Streams · Threads · Queues · Workers · Concurrency · Parallelism · Node.js · BullMQ · Typescript · Aws S3 · Docker · Redis
- docker >= 20.10.0
- docker-compose >= 1.29
- node >= 18.12.x
- pnpm >= 7.x
- Clone the repository (suggest to use ssh)
git clone https://github.com/henriq4/yt-aws-saver.git
- Install the project dependencies
pnpm i
- Configure aws credentials (optional)
/* src/config/aws/index.ts */
const awsCredentials = {
credentials: {
accessKeyId: "your access key id",
secretAccessKey: "your secret access key",
},
region: "your region",
bucket: "bucket to save downloaded videos",
};
export { awsCredentials };
pnpm dev <video url>
- Download video
- Typescrip typing
- Upload video to Aws S3 service
- Send video directly without save localy
- Use chunks to work in parallel
- Get video by Node.js argvs
- Name uploaded video to video received name
- Script to change aws credencials with is example configuration
- Apply queues and workers to receive more than one video (currently working...)
- Generate binary bundle with cli application
- Creating unitary tests
@henriq4 |
---|